Skip to content

Commit

Permalink
Update the DevContainer configuration
Browse files Browse the repository at this point in the history
This uses the configuration I wrote at langchain4j/langchain4j#337
  • Loading branch information
jdubois authored and dsyer committed Aug 14, 2024
1 parent 383edc1 commit 12eb8b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 43 deletions.
13 changes: 0 additions & 13 deletions .devcontainer/Dockerfile

This file was deleted.

53 changes: 23 additions & 30 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
{
"name": "Petclinic",
"dockerFile": "Dockerfile",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--mount",
"type=bind,source=${env:HOME}/.m2,target=/home/vscode/.m2",
"--mount",
"type=bind,source=${env:HOME}/.gradle,target=/home/vscode/.gradle",
"--env",
"GRADLE_USER_HOME=/home/vscode/.gradle"
],
"initializeCommand": "mkdir -p ${env:HOME}/.m2 ${env:HOME}/.gradle",
"postCreateCommand": "sudo chown vscode:vscode /home/vscode/.m2 /home/vscode/.gradle",
"remoteUser": "vscode",
"features": {
"docker-in-docker": "latest"
},
"extensions": [
"vscjava.vscode-java-pack",
"redhat.vscode-xml",
"vmware.vscode-boot-dev-pack",
"mhutchie.git-graph"
],
"forwardPorts": [8080],
"settings": {
"java.import.gradle.enabled": false,
"java.server.launchMode": "Standard"
}
"name": "Java",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "21-oracle",
"jdkDistro": "oracle"
},
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},

"customizations": {
"vscode": {
"settings": {},
"extensions": [
"redhat.vscode-xml",
"visualstudioexptteam.vscodeintellicode",
"vscjava.vscode-java-pack"
]
}
},
"remoteUser": "vscode"
}

0 comments on commit 12eb8b1

Please sign in to comment.