/
devcontainer.json
67 lines (67 loc) · 2.26 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/docker-from-docker
{
"name": "BentoML",
"dockerFile": "Dockerfile",
"context": "..",
"containerEnv": {
"BENTOML_DEBUG": "True",
"BENTOML_BUNDLE_LOCAL_BUILD": "True",
"SETUPTOOLS_USE_DISTUTILS": "stdlib"
},
"runArgs": ["--init"],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
],
"overrideCommand": false,
// Use this environment variable if you need to bind mount your local source code into a new container.
"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-azuretools.vscode-docker",
"ms-vsliveshare.vsliveshare",
"ms-python.black-formatter",
"ms-python.pylint",
"samuelcolvin.jinjahtml",
"GitHub.copilot",
"esbenp.prettier-vscode",
"VisualStudioExptTeam.intellicode-api-usage-examples"
],
"settings": {
"files.watcherExclude": {
"**/.ipynb_checkpoint/**": true,
"**/build/**": true
},
"files.exclude": {
"**/__pycache__": true
},
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.flake8Enabled": false,
"python.analysis.useLibraryCodeForTypes": true,
"python.analysis.stubPath": "./typings",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.minimap.enabled": false,
"editor.formatOnSave": true,
"editor.wordWrapColumn": 88
}
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 3001],
// install BentoML and tools
"postStartCommand": "bash ./.devcontainer/lifecycle/post-start"
}