Skip to content

Commit 0d6ad9e

Browse files
authored
Update devImage.jsonc
1 parent 48a5e5a commit 0d6ad9e

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/devImage.jsonc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
// mkdir .devcontainer && curl https://raw.githubusercontent.com/dleeftink/observable-python-codespace/main/.github/devImage.jsonc > .devcontainer/devcontainer.json
2-
31
{
42
"name": "Observable Framework Python starter",
53
"image": "mambaorg/micromamba:alpine3.19",
64
"features": {
75
"ghcr.io/cirolosapio/devcontainers-features/alpine-node:0": {
8-
//"globalPackages": "@devcontainers/cli" // remove in prod
6+
"globalPackages": "@devcontainers/cli" // remove in prod
97
},
10-
//"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+
1110
"ghcr.io/devcontainers-contrib/features/bash-command:1": {
12-
"command": "apk update && apk add coreutils && apk add git && apk upgrade wget"
11+
"command": "apk update && apk add coreutils wget shadow sudo git; sudo chsh -s /bin/bash ; sudo chsh -s /bin/bash mambauser"
1312
}
1413

1514
},
1615

17-
// "remoteUser": "root", // run as root when in prod
16+
"remoteUser": "root", // run as root when in prod
1817

1918
"remoteEnv": {
2019
"target_repo": "https://github.com/dleeftink/observable-python-codespace.git",
@@ -30,17 +29,17 @@
3029
}
3130
},
3231

33-
"onCreateCommand": "echo 'Please wait for live pane ...' && [ ! -f .devcontainer/$(basename \"$source_file\") ] && wget -P .devcontainer \"$source_file\" || exit 0", //todo: more succint check for setup file
34-
// "updateContentCommand": "wget -q -P .devcontainer \"$source_file\" -nc > /dev/null 2>&1",
35-
"postCreateCommand": "chmod +x .devcontainer/setup.sh && .devcontainer/setup.sh",
32+
"onCreateCommand": "echo 'Please wait for live pane ...'",
33+
"updateContentCommand": "wget -P .devcontainer \"$source_file\" -nc && chmod +x .devcontainer/*.sh",
34+
"postCreateCommand": ".devcontainer/setup.sh",
3635

3736
"postAttachCommand": {
38-
"serve": "npm run dep && npm run dev"
37+
"init": "code -r -g penguin-classification/docs/data/predictions.csv.py:1; npm run dep && npm run dev"
3938
},
4039

4140
"customizations": {
4241
"vscode": {
43-
"extensions": ["ms-azuretools.vscode-docker"]/*,
42+
"extensions": []/*, //["ms-azuretools.vscode-docker"]/*,
4443
4544
"settings": {
4645
"terminal.integrated.defaultProfile.linux": "bash",

0 commit comments

Comments
 (0)