41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/java
|
|
{
|
|
"name": "Java",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"image": "mcr.microsoft.com/devcontainers/java:1-8-bullseye",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/java:1": {
|
|
"version": "none",
|
|
"installMaven": "true",
|
|
"installGradle": "false"
|
|
}
|
|
},
|
|
"runArgs": [
|
|
"--network",
|
|
"dev",
|
|
"-v",
|
|
"dev-maven-repo:/home/vscode/.m2"
|
|
],
|
|
"containerEnv": {
|
|
"NACOS_SERVER_ADDR": "nacos:8848",
|
|
"NACOS_USERNAME": "cqyt",
|
|
"NACOS_PASSWORD": "Aa123456",
|
|
"NACOS_NAMESPACE": "2639a2d4-7b64-4408-98c9-b97e0bdf4c1f"
|
|
},
|
|
remoteEnv: {
|
|
"PROFILE_NAME": "dev",
|
|
"NACOS_GROUP": "dev"
|
|
},
|
|
"build": {
|
|
"options": [
|
|
"-t", "cqyt-platform-dev-image"
|
|
]
|
|
},
|
|
|
|
"customizations": {
|
|
"jetbrains": {
|
|
"backend": "IntelliJ"
|
|
}
|
|
},
|
|
} |