Artyom Boyko
commited on
Commit
·
126aed3
1
Parent(s):
7abe792
Add Devcontainer for VScode.
Browse files- .devcontainer/devcontainer.json +44 -0
- Dockerfile +22 -0
.devcontainer/devcontainer.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/ubuntu
|
3 |
+
{
|
4 |
+
"name": "",
|
5 |
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6 |
+
//"image": "mcr.microsoft.com/devcontainers/base:jammy"
|
7 |
+
"build": {
|
8 |
+
"dockerfile": "../Dockerfile"
|
9 |
+
},
|
10 |
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
11 |
+
// "features": {},
|
12 |
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
13 |
+
// "forwardPorts": [],
|
14 |
+
// Use 'postCreateCommand' to run commands after the container is created.
|
15 |
+
// "postCreateCommand": "uname -a",
|
16 |
+
// Configure tool-specific properties.
|
17 |
+
"customizations": {
|
18 |
+
"vscode": {
|
19 |
+
"extensions": [
|
20 |
+
"ms-python.python",
|
21 |
+
"ms-python.vscode-pylance",
|
22 |
+
"ms-toolsai.jupyter",
|
23 |
+
"ms-toolsai.vscode-jupyter-cell-tags",
|
24 |
+
"ms-toolsai.tensorboard",
|
25 |
+
"ms-toolsai.jupyter-keymap",
|
26 |
+
"ms-toolsai.jupyter-renderers",
|
27 |
+
"ms-toolsai.vscode-jupyter-slideshow",
|
28 |
+
"ms-toolsai.datawrangler",
|
29 |
+
"ms-azuretools.vscode-docker",
|
30 |
+
"github.vscode-github-actions",
|
31 |
+
"github.copilot",
|
32 |
+
"github.copilot-chat",
|
33 |
+
"mechatroner.rainbow-csv"
|
34 |
+
]
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"runArgs": [
|
38 |
+
"--shm-size=1gb",
|
39 |
+
"--gpus",
|
40 |
+
"all"
|
41 |
+
]
|
42 |
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
43 |
+
// "remoteUser": "root"
|
44 |
+
}
|
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:22.04
|
2 |
+
|
3 |
+
ENV PIP_ROOT_USER_ACTION=ignore
|
4 |
+
WORKDIR /tmp/
|
5 |
+
COPY requirements.txt packages.txt ./
|
6 |
+
|
7 |
+
RUN apt-get -y update && apt-get -y upgrade
|
8 |
+
RUN xargs apt -y install < packages.txt
|
9 |
+
|
10 |
+
RUN wget -v https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && dpkg -i cuda-keyring_1.1-1_all.deb && apt-get -y update && apt-get -y install cuda-toolkit-12-8
|
11 |
+
|
12 |
+
RUN wget -v https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && dpkg -i cuda-keyring_1.1-1_all.deb && apt-get -y update && apt-get -y install cudnn
|
13 |
+
|
14 |
+
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
15 |
+
|
16 |
+
RUN rm -f /usr/lib/python3.12/EXTERNALLY-MANAGED
|
17 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
RUN apt-get clean
|
20 |
+
RUN rm -rf /tmp/*
|
21 |
+
|
22 |
+
CMD ["bash"]
|