-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create .devcontainer/devcontainer.json * Update .github/dependabot.yml * Update .devcontainer/devcontainer.json * Add hostRequirements * Update postCreateCommand * Update * Update * Update * Update * Set the default value of REACT_APP_EDITOR_APP_ORIGIN in the start script
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "Stlite", | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"installTools": true, | ||
"version": "3.12.1" | ||
}, | ||
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { | ||
"packages": "make,protobuf-compiler,libprotobuf-dev" | ||
} | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
"forwardPorts": [3000, 3030], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "/bin/bash ./.devcontainer/postCreateCommand.sh", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
|
||
"hostRequirements": { | ||
"memory": "16gb", | ||
"storage": "16gb" | ||
} | ||
} |
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,10 @@ | ||
make init | ||
|
||
REACT_APP_EDITOR_APP_ORIGIN="https://${CODESPACE_NAME}-3030.app.github.dev" | ||
REACT_APP_SHARING_APP_URL="https://${CODESPACE_NAME}-3000.app.github.dev/" | ||
|
||
for file in ~/.zshrc ~/.bashrc; do | ||
echo "" >> $file | ||
echo "export REACT_APP_EDITOR_APP_ORIGIN=${REACT_APP_EDITOR_APP_ORIGIN}" >> $file | ||
echo "export REACT_APP_SHARING_APP_URL=${REACT_APP_SHARING_APP_URL}" >> $file | ||
done |
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