mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-11 17:01:11 +00:00
Add devcontainer and gitpod
Also works in codespaces.
This commit is contained in:
parent
0c1fa8e8e2
commit
abee85939f
5 changed files with 42 additions and 0 deletions
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "Petclinic",
|
||||
"dockerFile": "Dockerfile",
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"vscjava.vscode-java-pack",
|
||||
"redhat.vscode-xml"
|
||||
]
|
||||
}
|
||||
},
|
||||
"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"
|
||||
],
|
||||
|
||||
"initializeCommand": "mkdir -p ${env:HOME}/.m2 ${env:HOME}/.gradle",
|
||||
"onCreateCommand": "sudo chown vscode:vscode /home/vscode/.m2 /home/vscode/.gradle",
|
||||
"remoteUser": "vscode",
|
||||
"features": {
|
||||
"docker-in-docker": "latest"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue