From 5c758622a320d5fc2c8cbd8e6c06751cf1129ec5 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Fri, 2 Aug 2024 19:03:50 +0200 Subject: [PATCH] Add Dev Container configuration (#271) * Add Dev Container configuration * Remove the postCreateCommand * Add configuration tips for VS Code in Dev Container --- .devcontainer/devcontainer.json | 33 ++++++++++++++++++++++++++++ spring-petclinic-api-gateway/pom.xml | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..aee21c032 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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] +} diff --git a/spring-petclinic-api-gateway/pom.xml b/spring-petclinic-api-gateway/pom.xml index f870bd915..e813364b9 100644 --- a/spring-petclinic-api-gateway/pom.xml +++ b/spring-petclinic-api-gateway/pom.xml @@ -152,6 +152,8 @@ ${wro4j.version} + + generate-resources run