|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/go |
3 | 3 | { |
4 | | - "name": "portainer-dev-toolkit", |
5 | | - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | | - "image": "portainer/dev-toolkit:2025.04", |
7 | | - |
8 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
9 | | - // "features": {}, |
10 | | - |
11 | | - // Script that can be executed once the container is started. |
12 | | - "postStartCommand": "/post-start.sh", |
13 | | - |
14 | | - // Use 'forwardPorts' to make a list of ports inside the container available over localhost (localhost only). |
15 | | - "forwardPorts": [8000, 8999, 9000, 9443], |
16 | | - |
17 | | - // Use the 'appPort' field to define ports in the format "hostPort:containerPort". |
18 | | - // This is useful for exposing specific container ports on the host network. |
19 | | - // Specify ports here if your services need to be accessible via the host IP. |
20 | | - "appPort": [], |
21 | | - |
22 | | - // Use 'postCreateCommand' to run commands after the container is created. |
23 | | - // "postCreateCommand": "go version", |
24 | | - |
25 | | - // Use 'mounts' to mount host directories and volumes into the container. |
26 | | - "mounts": [ |
27 | | - "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" |
28 | | - ], |
29 | | - |
30 | | - // Configure tool-specific properties. |
31 | | - "customizations": { |
32 | | - "vscode": { |
33 | | - "extensions": [ |
34 | | - "ms-vscode.makefile-tools", |
35 | | - "ms-azuretools.vscode-docker", |
36 | | - "golang.Go" |
37 | | - ] |
38 | | - } |
39 | | - }, |
40 | | - |
41 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
42 | | - "remoteUser": "root" |
| 4 | + "name": "portainer-dev-toolkit", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "image": "portainer/dev-toolkit:2025.06", |
| 7 | + |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + // "features": {}, |
| 10 | + |
| 11 | + // Script that can be executed once the container is started. |
| 12 | + "postStartCommand": "/post-start.sh", |
| 13 | + |
| 14 | + // Use 'forwardPorts' to make a list of ports inside the container available over localhost (localhost only). |
| 15 | + "forwardPorts": [8000, 8999, 9000, 9443], |
| 16 | + |
| 17 | + // Use the 'appPort' field to define ports in the format "hostPort:containerPort". |
| 18 | + // This is useful for exposing specific container ports on the host network. |
| 19 | + // Specify ports here if your services need to be accessible via the host IP. |
| 20 | + "appPort": [], |
| 21 | + |
| 22 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 23 | + // "postCreateCommand": "go version", |
| 24 | + |
| 25 | + // Use 'mounts' to mount host directories and volumes into the container. |
| 26 | + "mounts": [ |
| 27 | + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" |
| 28 | + ], |
| 29 | + |
| 30 | + // Configure tool-specific properties. |
| 31 | + "customizations": { |
| 32 | + "vscode": { |
| 33 | + "extensions": [ |
| 34 | + "ms-vscode.makefile-tools", |
| 35 | + "ms-azuretools.vscode-docker", |
| 36 | + "golang.Go" |
| 37 | + ] |
| 38 | + } |
| 39 | + }, |
| 40 | + |
| 41 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 42 | + "remoteUser": "root" |
43 | 43 | } |
0 commit comments