File tree 4 files changed +75
-0
lines changed
4 files changed +75
-0
lines changed 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" : " agnext devcontainer" ,
5
+ "dockerComposeFile" : " docker-compose.yml" ,
6
+ "service" : " devcontainer" ,
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-outside-of-docker:1" : {
16
+ "moby" : true ,
17
+ "installDockerBuildx" : true ,
18
+ "version" : " latest" ,
19
+ "dockerDashComposeVersion" : " none"
20
+ },
21
+ "ghcr.io/devcontainers/features/python:1" : {
22
+ "installTools" : true ,
23
+ "version" : " latest"
24
+ }
25
+ },
26
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
27
+ // "forwardPorts": [],
28
+
29
+ // Use 'postCreateCommand' to run commands after the container is created.
30
+ "postCreateCommand" : " bash .devcontainer/startup.sh" ,
31
+
32
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33
+ "remoteUser" : " root" ,
34
+ "customizations" : {
35
+ "vscode" : {
36
+ "extensions" : [
37
+ " ms-python.python" ,
38
+ " ms-python.debugpy"
39
+ ]
40
+ }
41
+ }
42
+ }
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ services :
4
+ devcontainer :
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 : sleep infinity
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
1
+ #! /bin/bash
You can’t perform that action at this time.
0 commit comments