Skip to content

Commit 0971fcd

Browse files
authored
[patch] add name to containers (#5)
1 parent a7060df commit 0971fcd

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

group_vars/all.example.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ devcontainer_defaults:
2222
- source=codex_config,target=/home/vscode/.codex,type=volume
2323

2424
devcontainers:
25-
- path: java-example/.devcontainer/devcontainer.json
25+
- name: java-example
26+
path: java-example/.devcontainer/devcontainer.json
2627
image: mcr.microsoft.com/devcontainers/java:3-25-trixie
2728
features:
2829
ghcr.io/devcontainers/features/java:1:
@@ -31,12 +32,14 @@ devcontainers:
3132
installGradle: false
3233
install: |
3334
curl -sL -o cfr.jar 'https://www.benf.org/other/cfr/cfr-0.152.jar'
34-
- path: rust-example/.devcontainer/devcontainer.json
35+
- name: rust-example
36+
path: rust-example/.devcontainer/devcontainer.json
3537
image: mcr.microsoft.com/devcontainers/rust:2-1-trixie
3638
install: |
3739
sudo apt update
3840
sudo -n apt-get install -y --no-install-recommends default-jre-headless
39-
- path: python-example/.devcontainer/devcontainer.json
41+
- name: python-example
42+
path: python-example/.devcontainer/devcontainer.json
4043
image: mcr.microsoft.com/devcontainers/python:3.14
4144
post_attach_command: pip install -r ${containerWorkspaceFolder}/requirements.txt
4245
features:

tests/golden_output

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"source=claude_config,target=/home/vscode/.claude,type=volume",
2222
"source=codex_config,target=/home/vscode/.codex,type=volume"
2323
],
24-
"name": "devcontainer.json",
24+
"name": "java-example",
2525
"postCreateCommand": "bash .devcontainer/install.sh",
2626
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"
2727
}
@@ -68,7 +68,7 @@ curl -sL -o cfr.jar 'https://www.benf.org/other/cfr/cfr-0.152.jar'
6868
"source=claude_config,target=/home/vscode/.claude,type=volume",
6969
"source=codex_config,target=/home/vscode/.codex,type=volume"
7070
],
71-
"name": "devcontainer.json",
71+
"name": "python-example",
7272
"postAttachCommand": "pip install -r ${containerWorkspaceFolder}/requirements.txt",
7373
"postCreateCommand": "bash .devcontainer/install.sh",
7474
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"
@@ -92,7 +92,7 @@ sudo apt install -y --no-install-recommends ansible
9292
"source=claude_config,target=/home/vscode/.claude,type=volume",
9393
"source=codex_config,target=/home/vscode/.codex,type=volume"
9494
],
95-
"name": "devcontainer.json",
95+
"name": "rust-example",
9696
"postCreateCommand": "bash .devcontainer/install.sh",
9797
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"
9898
}

tests/java-example/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"source=claude_config,target=/home/vscode/.claude,type=volume",
2222
"source=codex_config,target=/home/vscode/.codex,type=volume"
2323
],
24-
"name": "devcontainer.json",
24+
"name": "java-example",
2525
"postCreateCommand": "bash .devcontainer/install.sh",
2626
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"
2727
}

tests/python-example/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"source=claude_config,target=/home/vscode/.claude,type=volume",
4040
"source=codex_config,target=/home/vscode/.codex,type=volume"
4141
],
42-
"name": "devcontainer.json",
42+
"name": "python-example",
4343
"postAttachCommand": "pip install -r ${containerWorkspaceFolder}/requirements.txt",
4444
"postCreateCommand": "bash .devcontainer/install.sh",
4545
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"

tests/rust-example/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"source=claude_config,target=/home/vscode/.claude,type=volume",
1515
"source=codex_config,target=/home/vscode/.codex,type=volume"
1616
],
17-
"name": "devcontainer.json",
17+
"name": "rust-example",
1818
"postCreateCommand": "bash .devcontainer/install.sh",
1919
"postStartCommand": "sudo chown -R vscode:vscode /home/vscode/.claude*"
2020
}

0 commit comments

Comments
 (0)