cicd-java-spring-boot/.devcontainer/devcontainer.json
2023-01-31 13:42:28 +00:00

42 lines
1.4 KiB
JSON

{
"name": "cicd-java-spring-boot",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "11",
"installMaven": true,
"installGradle": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash ./.devcontainer/scripts/postCreateCommand.sh",
// Configure tool-specific properties.
// "customizations": {},
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "mwpb.java-prettier-formatter",
"java.editor.tabSize": 2,
"java.editor.formatOnSave": true,
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
"java.format.settings.profile": "GoogleStyle"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dotjoshjohnson.xml",
"mwpb.java-prettier-formatter",
"Pivotal.vscode-boot-dev-pack",
"vscjava.vscode-gradle",
"vscjava.vscode-java-pack",
"vscjava.vscode-lombok"
]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}