Skip to content

Commit 21ce9b5

Browse files
Anton Schwarzbari12
authored andcommitted
Added VS Code Devcontainer
Added `.devcontainer/devcontainer.json` with the definition of a docker image containing all the required packages to run and test the `tools/build_documentation.sh`-file. Simply build and connect to this dev container; mount the folder into the dev container.
1 parent 356812f commit 21ce9b5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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-in-docker
3+
{
4+
"name": "Rucio-Docs",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
10+
"version": "latest",
11+
"enableNonRootDocker": "true",
12+
"moby": "true"
13+
},
14+
"ghcr.io/devcontainers/features/node:1": {},
15+
"ghcr.io/devcontainers/features/python:1": {},
16+
"ghcr.io/devcontainers/features/ruby:1": {}
17+
}
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "docker --version",
24+
25+
// Configure tool-specific properties.
26+
// "customizations": {},
27+
28+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
29+
// "remoteUser": "root"
30+
}

0 commit comments

Comments
 (0)