File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Note: You can use any Debian/Ubuntu based image you want.
2+ FROM mcr.microsoft.com/devcontainers/base:bullseye
3+
4+ # [Optional] Uncomment this section to install additional OS packages.
5+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+ # && apt-get -y install --no-install-recommends <your-package-list-here>
Original file line number Diff line number Diff line change 1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
3+ {
4+ "name" : " Development" ,
5+ "dockerComposeFile" : " docker-compose.yaml" ,
6+ "service" : " app" ,
7+ "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
8+
9+ // Use this environment variable if you need to bind mount your local source code into a new container.
10+ "remoteEnv" : {
11+ "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
12+ },
13+
14+ "features" : {
15+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
16+ "ghcr.io/devcontainers/features/git:1" : {},
17+ "ghcr.io/rocker-org/devcontainer-features/apt-packages:1" : {},
18+ "ghcr.io/eitsupi/devcontainer-features/jq-likes:1" : {},
19+ "ghcr.io/guiyomh/features/vim:0" : {}
20+ },
21+ "customizations" : {
22+ "vscode" : {
23+ "extensions" : [
24+ // "ms-vscode-remote.remote-containers"
25+ ]
26+ }
27+ }
28+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
29+ // "forwardPorts": [80]
30+
31+ // Use 'postCreateCommand' to run commands after the container is created.
32+ // "postCreateCommand": "docker --version",
33+
34+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
35+ // "remoteUser": "root"
36+ }
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ app :
5+ build :
6+ context : .
7+ dockerfile : Dockerfile
8+
9+ volumes :
10+ # Forwards the local Docker socket to the container.
11+ # - /var/run/docker.sock:/var/run/docker-host.sock
12+ # Update this to wherever you want VS Code to mount the folder of your project
13+ - ../..:/workspaces:cached
14+
15+ # Overrides default command so things don't shut down after the process ends.
16+ entrypoint : /usr/local/share/docker-init.sh
17+ command : tail -f /dev/null
18+
19+ # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
20+ # cap_add:
21+ # - SYS_PTRACE
22+ # security_opt:
23+ # - seccomp:unconfined
24+
25+ # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
26+ # (Adding the "ports" property to this file will not forward from a Codespace.)
Original file line number Diff line number Diff line change @@ -27,3 +27,6 @@ jupyter_custom.js
2727.eggs
2828* .code-workspace
2929docs /site
30+
31+
32+ ! .devcontainer /devcontainer.json
You can’t perform that action at this time.
0 commit comments