|
| 1 | +{ |
| 2 | + "name": "Observable Framework Python starter", |
| 3 | + "image": "mambaorg/micromamba:alpine3.19", |
| 4 | + "features": { |
| 5 | + "ghcr.io/cirolosapio/devcontainers-features/alpine-node:0": { |
| 6 | + "globalPackages": "@devcontainers/cli" // remove in prod |
| 7 | + }, |
| 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 | + |
| 13 | + }, |
| 14 | + |
| 15 | + // "remoteUser": "root", // run as root when in prod |
| 16 | + |
| 17 | + "remoteEnv": { |
| 18 | + "target_repo": "https://github.com/dleeftink/observable-python-codespace.git", |
| 19 | + "$MAMBA_ROOT_PREFIX": "/opt/conda" |
| 20 | + }, |
| 21 | + |
| 22 | + "forwardPorts": [3000], |
| 23 | + "portsAttributes": { |
| 24 | + "3000": { |
| 25 | + "label": "Live preview", |
| 26 | + "onAutoForward": "openPreview" |
| 27 | + } |
| 28 | + }, |
| 29 | + |
| 30 | + "onCreateCommand": "echo 'Please wait for live pane ...'", |
| 31 | + // "waitFor": "updateContentCommand", |
| 32 | + |
| 33 | + "postCreateCommand": "source .devcontainer/setup.sh", |
| 34 | + |
| 35 | + "postAttachCommand": { |
| 36 | + "serve": "npm run dep && npm run dev" |
| 37 | + }, |
| 38 | + |
| 39 | + "customizations": { |
| 40 | + "vscode": { |
| 41 | + "extensions": ["ms-azuretools.vscode-docker"]/*, |
| 42 | +
|
| 43 | + "settings": { |
| 44 | + "terminal.integrated.defaultProfile.linux": "bash", |
| 45 | + "terminal.integrated.profiles.linux": { |
| 46 | + "bash": { |
| 47 | + "path": "/bin/bash" |
| 48 | + } |
| 49 | + } |
| 50 | + }*/ |
| 51 | + } |
| 52 | + } |
| 53 | + } |
0 commit comments