|
1 | | -// mkdir .devcontainer && curl https://raw.githubusercontent.com/dleeftink/observable-python-codespace/main/.github/devImage.jsonc > .devcontainer/devcontainer.json |
2 | | - |
3 | 1 | { |
4 | 2 | "name": "Observable Framework Python starter", |
5 | 3 | "image": "mambaorg/micromamba:alpine3.19", |
6 | 4 | "features": { |
7 | 5 | "ghcr.io/cirolosapio/devcontainers-features/alpine-node:0": { |
8 | | - //"globalPackages": "@devcontainers/cli" // remove in prod |
| 6 | + "globalPackages": "@devcontainers/cli" // remove in prod |
9 | 7 | }, |
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 | + |
11 | 10 | "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" |
13 | 12 | } |
14 | 13 |
|
15 | 14 | }, |
16 | 15 |
|
17 | | - // "remoteUser": "root", // run as root when in prod |
| 16 | + "remoteUser": "root", // run as root when in prod |
18 | 17 |
|
19 | 18 | "remoteEnv": { |
20 | 19 | "target_repo": "https://github.com/dleeftink/observable-python-codespace.git", |
|
30 | 29 | } |
31 | 30 | }, |
32 | 31 |
|
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", |
36 | 35 |
|
37 | 36 | "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" |
39 | 38 | }, |
40 | 39 |
|
41 | 40 | "customizations": { |
42 | 41 | "vscode": { |
43 | | - "extensions": ["ms-azuretools.vscode-docker"]/*, |
| 42 | + "extensions": []/*, //["ms-azuretools.vscode-docker"]/*, |
44 | 43 |
|
45 | 44 | "settings": { |
46 | 45 | "terminal.integrated.defaultProfile.linux": "bash", |
|
0 commit comments