Skip to content

Commit 096cd4e

Browse files
authored
Update devImage.jsonc
1 parent 4e6e7bb commit 096cd4e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/devImage.jsonc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
"name": "Observable Framework Python starter",
33
"image": "mambaorg/micromamba:alpine3.19",
44
"features": {
5-
"ghcr.io/cirolosapio/devcontainers-features/alpine-git:0": {},
65
"ghcr.io/cirolosapio/devcontainers-features/alpine-node:0": {
76
"globalPackages": "@devcontainers/cli" // remove in prod
87
},
9-
"ghcr.io/cirolosapio/devcontainers-features/alpine-docker-outside-of-docker:0": {} // remove in prod
8+
"ghcr.io/cirolosapio/devcontainers-features/alpine-docker-outside-of-docker:0": {}, // remove in prod
9+
"ghcr.io/devcontainers-contrib/features/bash-command:1": {
10+
"command": "apk update && apk add coreutils && apk add git"
11+
}
12+
1013
},
1114

12-
"remoteUser": "root", // run as root when in prod
15+
// "remoteUser": "root", // run as root when in prod
1316

1417
"remoteEnv": {
1518
"target_repo": "https://github.com/dleeftink/observable-python-codespace.git",
@@ -27,9 +30,10 @@
2730
// "onCreateCommand": "echo 'Please wait for live pane ...' | sudo tee /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
2831
// "waitFor": "updateContentCommand",
2932

30-
// needs explicit bash because of Alpine ash default
33+
// to do: env.yaml
34+
"onCreateCommand": "bash -c 'eval \"$(micromamba shell hook --shell bash)\" && micromamba activate && micromamba install python -c conda-forge -y'",
3135
"postCreateCommand": "source .devcontainer/setup.sh",
32-
36+
3337
"postAttachCommand": {
3438
//"serve": "bash -c 'eval \"$(micromamba shell hook -s bash )\" && micromamba activate base && npm run get && npm run obs'"
3539
},

0 commit comments

Comments
 (0)