Skip to content

Commit a13c719

Browse files
build(devcontainer): update devcontainer
1 parent 22b6516 commit a13c719

File tree

6 files changed

+1139
-24
lines changed

6 files changed

+1139
-24
lines changed

.devcontainer/compose.yaml

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

.devcontainer/devcontainer-lock.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"features": {
3-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1.6.5": {
4-
"version": "1.6.5",
5-
"resolved": "ghcr.io/devcontainers/features/docker-outside-of-docker@sha256:5c0af58d6acc6d81e38b5a6130724330f2eb4f703120dea0016a35da4ad30861",
6-
"integrity": "sha256:5c0af58d6acc6d81e38b5a6130724330f2eb4f703120dea0016a35da4ad30861"
7-
},
83
"ghcr.io/dhoeric/features/oras:1": {
94
"version": "1.0.0",
105
"resolved": "ghcr.io/dhoeric/features/oras@sha256:d08787b42a60d49b001260e00967fd2206326f552e5f7f09ce2535de2f351d8d",

.devcontainer/devcontainer.json

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
// 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/dotnet-mssql
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/go .
33
{
44
"name": "Kustomize",
5-
"dockerComposeFile": "compose.yaml",
6-
"service": "app",
7-
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie",
7+
"workspaceFolder": "/workspaces/kustomize",
88

99
"features": {
10-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1.6.5": {},
11-
"ghcr.io/dhoeric/features/oras:1": {}
10+
"ghcr.io/dhoeric/features/oras:1": {},
11+
"./podman-outside": {
12+
"moby": false,
13+
},
1214
},
1315

1416
"customizations": {
1517
"vscode": {
18+
"settings": {
19+
"editor.formatOnPaste": true,
20+
"editor.formatOnSave": true,
21+
"editor.renderWhitespace": "all",
22+
"editor.trimWhitespaceOnDelete": true,
23+
24+
"files.insertFinalNewline": true,
25+
"files.trimTrailingWhitespace": true,
26+
"files.trimFinalNewlines": true,
27+
28+
"git.blame.ignoreWhitespace": true,
29+
},
1630
"extensions": [
1731
"redhat.vscode-yaml",
1832
]
1933
}
2034
},
21-
22-
}
35+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"id": "podman-outside",
3+
"version": "1.6.5",
4+
"name": "Docker (docker-outside-of-docker)",
5+
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker",
6+
"description": "Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.",
7+
"options": {
8+
"version": {
9+
"type": "string",
10+
"proposals": [
11+
"latest",
12+
"none",
13+
"20.10"
14+
],
15+
"default": "latest",
16+
"description": "Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.)"
17+
},
18+
"moby": {
19+
"type": "boolean",
20+
"default": true,
21+
"description": "Install OSS Moby build instead of Docker CE"
22+
},
23+
"mobyBuildxVersion": {
24+
"type": "string",
25+
"default": "latest",
26+
"description": "Install a specific version of moby-buildx when using Moby"
27+
},
28+
"dockerDashComposeVersion": {
29+
"type": "string",
30+
"enum": [
31+
"none",
32+
"v1",
33+
"v2"
34+
],
35+
"default": "v2",
36+
"description": "Compose version to use for docker-compose (v1 or v2 or none)"
37+
},
38+
"installDockerBuildx": {
39+
"type": "boolean",
40+
"default": true,
41+
"description": "Install Docker Buildx"
42+
},
43+
"installDockerComposeSwitch": {
44+
"type": "boolean",
45+
"default": true,
46+
"description": "Install Compose Switch (provided docker compose is available) which is a replacement to the Compose V1 docker-compose (python) executable. It translates the command line into Compose V2 docker compose then runs the latter."
47+
}
48+
},
49+
"entrypoint": "/usr/local/share/docker-init.sh",
50+
"customizations": {
51+
"vscode": {
52+
"extensions": [
53+
"ms-azuretools.vscode-containers"
54+
],
55+
"settings": {
56+
"github.copilot.chat.codeGeneration.instructions": [
57+
{
58+
"text": "This dev container includes the Docker CLI (`docker`) pre-installed and available on the `PATH` for running and managing containers using the Docker daemon on the host machine."
59+
}
60+
]
61+
}
62+
}
63+
},
64+
"mounts": [
65+
{
66+
"source": "/var/run/user/1000/podman/podman.sock",
67+
"target": "/var/run/docker-host.sock",
68+
"type": "bind"
69+
}
70+
],
71+
"securityOpt": [
72+
"label=disable"
73+
],
74+
"installsAfter": [
75+
"ghcr.io/devcontainers/features/common-utils"
76+
],
77+
"legacyIds": [
78+
"docker-from-docker"
79+
]
80+
}

0 commit comments

Comments
 (0)