Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dev Container configuration #271

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Spring Petclinic Microservices",
// Java Development Container Images https://mcr.microsoft.com/en-us/product/devcontainers/java/tags
"image": "mcr.microsoft.com/devcontainers/java:17-bullseye",
// Features list https://containers.dev/features
"features": {
"ghcr.io/devcontainers/features/java:1": {
"installMaven": "true",
"installGradle": "false"
},
"ghcr.io/devcontainers/features/azure-cli:1":{}, // Install Azure CLI
"ghcr.io/devcontainers/features/docker-in-docker:2":{}, // install docker
},
"customizations": {
// Configure properties specific to VScode
"vscode": {
"settings": {
// VSCode settings https://github.com/redhat-developer/vscode-java/blob/master/README.md
"java.server.launchMode": "Standard"
},
"extensions":[
"vscjava.vscode-java-pack",
"vscjava.vscode-maven",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"redhat.vscode-xml",
"vmware.vscode-boot-dev-pack",
"mhutchie.git-graph"
]
},
},
"forwardPorts": [8080, 8888, 8761]
}
2 changes: 2 additions & 0 deletions spring-petclinic-api-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
<version>${wro4j.version}</version>
<executions>
<execution>
<!-- Configuration tips for VS Code in Dev Container -->
<?m2e execute onConfiguration?>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
Expand Down
Loading