Skip to content

Commit 4da90a2

Browse files
Synicixeywalker
authored andcommitted
Simplify dev image even more
1 parent 8945b89 commit 4da90a2

File tree

6 files changed

+18
-120
lines changed

6 files changed

+18
-120
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ RUN \
5151
uv pip install ipykernel eclipse-zenoh -p ~/.local/share/base && \
5252
echo '. ~/.local/share/base/bin/activate' >> ~/.bashrc
5353
ENV VIRTUAL_ENV=/root/.local/share/base
54-
CMD ["bash", "-c", "sudo rm /var/run/docker.pid; sudo dockerd"]

.devcontainer/cpu/docker-compose.yaml

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

.devcontainer/cpu/devcontainer.json renamed to .devcontainer/devcontainer.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
{
22
"name": "Development-CPU-ONLY",
3-
"dockerComposeFile": "./docker-compose.yaml",
4-
"service": "ide",
3+
"build": {
4+
"dockerfile": "./Dockerfile"
5+
},
6+
"postStartCommand": "sudo rm /var/run/docker.pid; sudo dockerd",
57
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
6-
"initializeCommand": ".devcontainer/make_env_file.py ${localWorkspaceFolder} ./cpu/",
7-
"postStartCommand": "mkdir -p tests/.tmp && docker system prune -fa && docker volume prune -f",
88
"hostRequirements": {
99
"cpus": 2,
1010
"memory": "8gb",
1111
"storage": "32gb"
1212
},
13+
"remoteEnv": {
14+
"RUST_BACKTRACE": "1"
15+
},
16+
"capAdd": [
17+
"SYS_ADMIN"
18+
],
19+
"privileged": true,
20+
"runArgs": [
21+
"--cgroupns=host",
22+
"--gpus=all"
23+
],
24+
"mounts": [
25+
"source=docker_data,target=/var/lib/docker,type=volume"
26+
],
1327
"customizations": {
1428
"vscode": {
1529
"extensions": [

.devcontainer/gpu/devcontainer.json

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

.devcontainer/gpu/docker-compose.yaml

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

.devcontainer/make_env_file.py

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

0 commit comments

Comments
 (0)