File: devcontainer.json

package info (click to toggle)
containerd 2.1.4~ds2-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 21,772 kB
  • sloc: sh: 1,885; makefile: 591
file content (32 lines) | stat: -rw-r--r-- 983 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// For format details, see https://aka.ms/devcontainer.json.
{
	"name": "containerd",
	"build": {
		"context": "..",
		"dockerfile": "Dockerfile"
	},
	"workspaceFolder": "/go/src/github.com/containerd/containerd",
	"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/containerd/containerd,type=bind,consistency=cached",

	// Features to add to the dev container. More info: https://containers.dev/features.
	"features": {
		"ghcr.io/devcontainers/features/docker-in-docker:2": {},
		"ghcr.io/devcontainers/features/go:1": {
			"version": "1.24.5"
		}
	},

	"onCreateCommand": "sudo PATH=$PATH bash .devcontainer/setup.sh",
	"postAttachCommand": {
		"Runs all non-integration tests that do not require `root` privileges": "make test",
		"Runs non-integration tests which require `root`": "sudo PATH=$PATH  make root-test"
	},

	"remoteUser": "root",
	"runArgs": [
		"--ipc=host",
		"--volume=/dev:/dev",
		"--volume=/run/udev:/run/udev",
		"--privileged"
	]
}