Skip to content

Commit f4ef4a3

Browse files
committed
feat: update container initialization and permissions; add GitHub CLI installation
1 parent a0b3d31 commit f4ef4a3

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.devcontainer/container-init.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ export NVM_DIR="/usr/local/share/nvm"
88
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
99
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
1010
nvm install node
11-
npm install -g @anthropic-ai/claude-code
11+
npm install -g @anthropic-ai/claude-code
12+
13+
14+
# install github cli
15+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
16+
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
17+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
18+
apt update
19+
apt install gh -y

.devcontainer/devcontainer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@
1818
// "customizations": {},
1919

2020
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
21-
// "remoteUser": "root"
21+
,
22+
"remoteUser": "root"
23+
24+
// Mount the Docker Socket (Docker-outside-of-Docker) to enable Docker commands within the container.
25+
,
26+
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"],
27+
"features": {
28+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
29+
}
30+
2231
}

scripts/generate-client.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()
88
cd ..
99
mv openapi.json frontend/
1010
cd frontend
11-
npm run generate-client
11+
npm run generate-client

0 commit comments

Comments
 (0)