From 480051d52604674cabc4e29a979ff6cbcc5cd5ac Mon Sep 17 00:00:00 2001 From: gagb Date: Sun, 14 Jan 2024 04:12:01 +0000 Subject: [PATCH 1/2] Create studio subfolder in devcontainer --- .devcontainer/studio/Dockerfile | 22 ++++++++++++++++++++++ .devcontainer/studio/devcontainer.json | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .devcontainer/studio/Dockerfile create mode 100644 .devcontainer/studio/devcontainer.json diff --git a/.devcontainer/studio/Dockerfile b/.devcontainer/studio/Dockerfile new file mode 100644 index 000000000000..5bf2d4c27d82 --- /dev/null +++ b/.devcontainer/studio/Dockerfile @@ -0,0 +1,22 @@ +#------------------------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE file in the project root for license information. +#------------------------------------------------------------------------------------------------------------- + +FROM mcr.microsoft.com/vscode/devcontainers/python:3.10 + +# +# Update the OS and maybe install packages +# +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get -y install --no-install-recommends build-essential npm \ + && apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog + +# For docs +RUN npm install --global yarn +RUN pip install pydoc-markdown diff --git a/.devcontainer/studio/devcontainer.json b/.devcontainer/studio/devcontainer.json new file mode 100644 index 000000000000..b2fba4a8ea32 --- /dev/null +++ b/.devcontainer/studio/devcontainer.json @@ -0,0 +1,21 @@ +{ + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter", + "visualstudioexptteam.vscodeintellicode" + ], + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/bin/bash" + } + }, + "terminal.integrated.defaultProfile.linux": "bash" + } + } + }, + "dockerFile": "Dockerfile", + "updateContentCommand": "pip install -e . pre-commit && pre-commit install" +} From 6a5c663902348350777f56fd09d352ea8127384b Mon Sep 17 00:00:00 2001 From: gagb Date: Sun, 14 Jan 2024 05:18:38 +0000 Subject: [PATCH 2/2] Update to follow readme instructions --- .devcontainer/studio/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/studio/devcontainer.json b/.devcontainer/studio/devcontainer.json index b2fba4a8ea32..1d7afb73773f 100644 --- a/.devcontainer/studio/devcontainer.json +++ b/.devcontainer/studio/devcontainer.json @@ -17,5 +17,5 @@ } }, "dockerFile": "Dockerfile", - "updateContentCommand": "pip install -e . pre-commit && pre-commit install" + "updateContentCommand": "cd samples/apps/autogen-studio && pip install -e . && sudo npm install -g gatsby-cli && cd frontend && yarn install && yarn build" }