45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "devcontainer",
|
|
"image": "registry.cn-hangzhou.aliyuncs.com/zeroware/devcontainer:latest",
|
|
"runArgs": ["--name", "${localWorkspaceFolderBasename}_devcontainer", "--env-file",".env"],
|
|
"forwardPorts": [
|
|
8080
|
|
],
|
|
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
|
"containerUser": "ubuntu",
|
|
"remoteUser": "ubuntu",
|
|
"containerEnv": {
|
|
"HOME": "/home/ubuntu"
|
|
},
|
|
"remoteEnv": {
|
|
"HOME": "/home/ubuntu"
|
|
},
|
|
"updateRemoteUserUID": true,
|
|
"mounts": [
|
|
{
|
|
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.m2/repository",
|
|
"target": "/home/ubuntu/.m2/repository",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh",
|
|
"target": "/home/ubuntu/.ssh",
|
|
"type": "bind"
|
|
}
|
|
],
|
|
"customizations": {
|
|
// Configure properties specific to VS Code.
|
|
"vscode": {
|
|
// Set *default* container specific settings.json values on container create.
|
|
"extensions": [
|
|
"vscjava.vscode-java-dependency",
|
|
"vscjava.vscode-maven",
|
|
"vscjava.vscode-java-test",
|
|
"vscjava.vscode-java-debug",
|
|
"vscjava.vscode-java-pack",
|
|
"esbenp.prettier-vscode"
|
|
]
|
|
}
|
|
}
|
|
}
|