Skip to content

Commit 9976190

Browse files
committed
add rl cart pole
1 parent 0e4c94f commit 9976190

File tree

12 files changed

+70469
-19
lines changed

12 files changed

+70469
-19
lines changed

.devcontainer/devcontainer.json

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
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/debian
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
44
"name": "dsc-tutorials-dev",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "dsc-tutorials-dev",
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {
10-
// "ghcr.io/devcontainers/features/conda:1": {}
11-
// },
12-
13-
// where to mount the workspace
14-
"workspaceFolder": "/workspace",
15-
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
9+
// "features": {},
1610

1711
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18-
"forwardPorts": [5000, 6006, 8888],
12+
// "forwardPorts": [],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "pip3 install --user -r requirements.txt",
1916

2017
// Configure tool-specific properties.
2118
"customizations": {
@@ -30,20 +27,14 @@
3027
}
3128
},
3229

33-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34-
"remoteUser": "root",
35-
36-
// install package and cleanup
37-
"postCreateCommand": "./.devcontainer/post-install.sh",
38-
3930
// with GPU support
4031
"runArgs": [
4132
"--gpus", "all",
4233
"--cpus", "16",
4334
"--memory", "16g",
4435
"--shm-size", "4g"
45-
]
36+
],
4637

47-
// Additional mounts
48-
// "mounts": [{ "source": "dind-var-lib-docker", "target": "/var/lib/docker", "type": "volume" }]
38+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
39+
"remoteUser": "root"
4940
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// 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/debian
3+
{
4+
"name": "dsc-tutorials-dev",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "dsc-tutorials-dev",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {
10+
// "ghcr.io/devcontainers/features/conda:1": {}
11+
// },
12+
13+
// where to mount the workspace
14+
"workspaceFolder": "/workspace",
15+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
16+
17+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18+
"forwardPorts": [5000, 6006, 8888],
19+
20+
// Configure tool-specific properties.
21+
"customizations": {
22+
"vscode": {
23+
"extensions": [
24+
"ms-python.python",
25+
"ms-python.vscoda-pylance",
26+
"ms-python.autopep8",
27+
"mechatroner.rainbow-csv",
28+
"ms-toolsai.jupyter"
29+
]
30+
}
31+
},
32+
33+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34+
"remoteUser": "root",
35+
36+
// install package and cleanup
37+
"postCreateCommand": "./.devcontainer/post-install.sh",
38+
39+
// with GPU support
40+
"runArgs": [
41+
"--gpus", "all",
42+
"--cpus", "16",
43+
"--memory", "16g",
44+
"--shm-size", "4g"
45+
]
46+
47+
// Additional mounts
48+
// "mounts": [{ "source": "dind-var-lib-docker", "target": "/var/lib/docker", "type": "volume" }]
49+
}

0 commit comments

Comments
 (0)