-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevcontainer.json
50 lines (39 loc) · 2.23 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
{
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
"name": "Oracle Python",
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "Dockerfile",
// The optional 'runArgs' property can be used to specify additional runtime arguments.
"runArgs": [
// Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details.
// "-v","/var/run/docker.sock:/var/run/docker.sock",
// Uncomment the next line to mount the user's .oci directory that contains the OCI API key and config files.
// "-v", "${env:HOME}${env:USERPROFILE}/.oci:/home/vscode/.oci",
// Uncomment the next line if you will be using a ptrace-based debugger like C++, Go, and Rust.
// "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"
// Uncomment the next line to use a non-root user. See https://aka.ms/vscode-remote/containers/non-root-user.
"-u", "vscode",
// Modify the next line to attach the devcontainer to a specific Docker network.
"--network", "axer_network"
],
// Uncomment the next line if you want to publish any ports.
// "appPort": [],
// Uncomment the next line if you want to add in default container specific settings.json values
// "settings": { "workbench.colorTheme": "Quiet Light" },
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/bin/python3",
"python.linting.pylintEnabled": true,
"python.linting.pylintPath": "/usr/local/bin/pylint",
"python.linting.enabled": true,
"git.ignoreLegacyWarning": true
},
// Installs any dependencies if "requirements.txt" exists in workspace root.
"postCreateCommand": "if [[ -f requirements.txt ]]; then sudo python3 -m pip install -r requirements.txt; fi;",
// Add the IDs of any extensions you want installed in the array below.
"extensions": [ "ms-python.python" ]
}