-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance devcontainer setup with post-create script for dependency ins…
…tallation and improved performance. Removed partial hot reload setup, as it required bigger changes to the project. Improved documentation, and fixed markdown lint issues. Signed-off-by: Johan Forngren <[email protected]>
- Loading branch information
1 parent
596663f
commit a6f0f2f
Showing
4 changed files
with
82 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
python/packages/autogen-studio/.devcontainer/post-create-command.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Create the node_modules directory in the frontend folder if it doesn't exist | ||
# This ensures the directory exists before mounting | ||
mkdir -p frontend/node_modules | ||
|
||
# Change ownership of node_modules to vscode user | ||
# This prevents permission issues when installing packages | ||
sudo chown vscode frontend/node_modules | ||
|
||
pip install --upgrade pip gunicorn | ||
|
||
# Install the AutoGen Studio project in editable mode (-e flag) | ||
# This allows for development changes to be reflected immediately | ||
pip install -e . | ||
|
||
npm install -g gatsby-cli@latest | ||
|
||
# Install yarn dependencies with cache to improve performance | ||
cd frontend && \ | ||
yarn install --cache-folder /tmp/.yarn-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters