1- // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
2- // https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/go
31{
4- "name" : " devcontainers-ci" ,
5- "dockerFile" : " Dockerfile" ,
2+ "name" : " Test CI/CD Project" ,
63 "build" : {
7- "cacheFrom " : " ghcr.io/devcontainers/ci-devcontainer:latest "
4+ "dockerfile " : " Dockerfile "
85 },
9- "mounts" : [
10- // Keep command history
11- " source=devcontainer-build-run-bashhistory,target=/home/vscode/commandhistory" ,
12- // Mount host docker socket
13- " type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
14- ],
15- "postCreateCommand" : " .devcontainer/scripts/postCreate.sh" ,
16- "remoteUser" : " vscode" ,
6+ "features" : {
7+ "ghcr.io/devcontainers/features/git:1" : {
8+ "version" : " latest"
9+ }
10+ },
11+ "postCreateCommand" : " chmod +x scripts/*.sh && scripts/post-create.sh" ,
12+ "postStartCommand" : " chmod +x scripts/*.sh && scripts/post-start.sh" ,
1713 "customizations" : {
1814 "vscode" : {
19- "settings" : {
20- "terminal.integrated.defaultProfile.linux" : " bash" ,
21- "files.eol" : " \n "
22- },
2315 "extensions" : [
24- " ms-azuretools.vscode-docker" ,
25- " yzhang.markdown-all-in-one" ,
26- " davidanson.vscode-markdownlint" ,
27- " heaths.vscode-guid" ,
28- " esbenp.prettier-vscode" ,
29- " meganrogge.template-string-converter" ,
30- " ms-azure-devops.azure-pipelines"
31- ]
16+ " ms-azuretools.vscode-docker"
17+ ],
18+ "settings" : {
19+ "terminal.integrated.defaultProfile.linux" : " bash"
20+ }
3221 }
3322 },
34- "features" : {
35- "ghcr.io/devcontainers/features/github-cli:1" : " latest"
36- }
23+ "remoteUser" : " root" ,
24+ "forwardPorts" : []
3725}
0 commit comments