36 lines
1.3 KiB
JSON
36 lines
1.3 KiB
JSON
// 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.2/containers/ubuntu
|
|
{
|
|
"name": "acme-fitness-store",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
|
|
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
|
|
"args": {
|
|
"VARIANT": "ubuntu-22.04"
|
|
}
|
|
},
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
"onCreateCommand": "./.devcontainer/scripts/onCreateCommand.sh",
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
"remoteUser": "vscode",
|
|
"hostRequirements": {
|
|
"cpus": 2
|
|
},
|
|
"containerEnv": {
|
|
"GRADLE_USER_HOME": "/home/vscode", // required because the java feature is not setting this correctly
|
|
"M2": "/home/vscode" // required because the java feature is not setting this correctly
|
|
},
|
|
"features": {
|
|
"azure-cli": "latest",
|
|
"docker-from-docker": "latest",
|
|
"node": "lts",
|
|
"ghcr.io/devcontainers/features/java:1": {
|
|
"version": "17",
|
|
"installGradle": true,
|
|
"installMaven": true
|
|
}
|
|
}
|
|
} |