-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.devcontainer.json
31 lines (26 loc) · 1.52 KB
/
.devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "SatoriNet",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "python:3.9-slim",
"build": { "dockerfile": "Dockerfile", "args": {"GPU_FLAG": "off", "BRANCH_FLAG": "main"} },
"runArgs": ["--env","ENV=prod", "--env","PREDICTOR=xgboost"],
// "build": { "dockerfile": "Dockerfile-dev", "args": {"GPU_FLAG": "on"} },
// "runArgs": ["--env","ENV=prod", "--env","PREDICTOR=chronos", "--env","GPU_FLAG=on", "--runtime=nvidia", "--gpus","all"],
// "capAdd": ["SYS_ADMIN"],
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [24601],
"customizations": {
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "ms-python.debugpy"]
}
},
"workspaceFolder": "/Satori",
"workspaceMount": "source=${localWorkspaceFolder},target=/Satori/${localWorkspaceFolderBasename},type=bind,consistency=cached",
// Uncomment the next line to run commands after the container is created - for example installing curl.
"postCreateCommand": "cd /Satori/Neuron && pip install --no-cache-dir -r requirements.txt && python setup.py develop",
}