Repository navigation
Expand file tree
/
Copy pathdevcontainer.json
More file actions
59 lines (59 loc) · 2.28 KB
/
Copy pathdevcontainer.json
File metadata and controls
59 lines (59 loc) · 2.28 KB
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
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Workspace Dockerfile",
// We have no context for the devcontainer.
"context": ".",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "../docker/benchbase/devcontainer/Dockerfile",
"build": {
"args": {
"http_proxy": "${localEnv:http_proxy}",
"https_proxy": "${localEnv:https_proxy}",
"no_proxy": "${localEnv:no_proxy}",
"--tag": "benchbase-dev:latest"
},
"cacheFrom": "benchbase.azurecr.io/benchbase-dev:latest"
},
"initializeCommand": [
".devcontainer/scripts/initializeCommand"
],
"runArgs": [
// Secret injection as environment variables
// https://code.visualstudio.com/remote/advancedcontainers/environment-variables#_option-2-use-an-env-file
"--env-file=.env"
],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker": {},
"ghcr.io/stuartleeks/dev-container-features/shell-history": {}
},
"containerEnv": {
"http_proxy": "${localEnv:http_proxy}",
"https_proxy": "${localEnv:https_proxy}",
"no_proxy": "${localEnv:no_proxy}",
"MAVEN_CONFIG": "${localEnv:HOME}/.m2",
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}",
"CONTAINER_WORKSPACE_FOLDER": "${containerWorkspaceFolder}"
},
// Set *default* container specific settings.json values on container create.
"customizations": {
"vscode": {
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"github.vscode-github-actions",
"GitHub.copilot",
"eamodio.gitlens",
"vscjava.vscode-java-pack",
"EditorConfig.EditorConfig"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use the local maven cache.
"mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.m2,target=/home/containeruser/.m2,type=bind,consistency=cached"
],
"remoteUser": "containeruser",
"containerUser": "containeruser"
}