Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 700ec96

Browse files
authored
chore: use dogfood-oss image in .devcontainer (#8231)
* use dogfood-oss image in devcontainer * fix image name * use Dockerfile * Discard changes to dogfood/Dockerfile * Use features to get docker in docker * use previleged container * use codercom/oss-dogfood image * add `--priviliged` to fix GitHub Codespaces builds * remove default options
1 parent bc102d6 commit 700ec96

File tree

2 files changed

+9
-104
lines changed

2 files changed

+9
-104
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 83 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1-
// For format details, see https://aka.ms/devcontainer.json
21
{
32
"name": "Development environments on your infrastructure",
4-
5-
// Sets the run context to one level up instead of the .devcontainer folder.
6-
"context": ".",
7-
8-
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9-
"dockerFile": "Dockerfile",
10-
11-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12-
// "forwardPorts": [],
13-
14-
"postStartCommand": "dockerd",
15-
16-
// privileged is required by GitHub codespaces - https://github.com/microsoft/vscode-dev-containers/issues/727
17-
"runArgs": [
18-
"--cap-add=SYS_PTRACE",
19-
"--security-opt",
20-
"seccomp=unconfined",
21-
"--privileged",
22-
"--init"
23-
]
3+
"image": "codercom/oss-dogfood:latest",
4+
5+
"features": {
6+
// See all possible options here https://github.com/devcontainers/features/tree/main/src/docker-in-docker
7+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
8+
},
9+
// SYS_PTRACE to enable go debugging
10+
// without --priviliged the Github Codespace build fails (not required otherwise)
11+
"runArgs": ["--cap-add=SYS_PTRACE", "--privileged"]
2412
}

0 commit comments

Comments
 (0)