Skip to content

Commit 34f3136

Browse files
committed
decontainer setup
1 parent 6c028eb commit 34f3136

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "LinkedDataHub",
3+
"dockerComposeFile": ["../docker-compose.yml"],
4+
"service": "linkeddatahub",
5+
"workspaceFolder": "/workspace",
6+
"shutdownAction": "stopCompose",
7+
"features": {
8+
"ghcr.io/devcontainers/features/java:1": {
9+
"version": "17",
10+
"installMaven": "true"
11+
},
12+
"ghcr.io/devcontainers/features/node:1": {
13+
"version": "18"
14+
},
15+
"ghcr.io/devcontainers/features/git:1": {}
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"vscjava.vscode-java-pack",
21+
"ms-vscode.vscode-json",
22+
"redhat.vscode-xml",
23+
"ms-vscode.vscode-typescript-next",
24+
"ms-vscode.vscode-css-languageservice",
25+
"ms-vscode.vscode-html-languageservice"
26+
],
27+
"settings": {
28+
"java.configuration.updateBuildConfiguration": "automatic",
29+
"java.compile.nullAnalysis.mode": "automatic"
30+
}
31+
}
32+
},
33+
"forwardPorts": [
34+
8080,
35+
4443,
36+
5443
37+
],
38+
"portsAttributes": {
39+
"8080": {
40+
"label": "HTTP",
41+
"onAutoForward": "notify"
42+
},
43+
"4443": {
44+
"label": "HTTPS",
45+
"onAutoForward": "notify"
46+
},
47+
"5443": {
48+
"label": "HTTPS Client Cert",
49+
"onAutoForward": "notify"
50+
}
51+
},
52+
"postCreateCommand": "echo 'LinkedDataHub devcontainer ready! Run: docker-compose up --build to start all services'",
53+
"remoteEnv": {
54+
"PATH": "${containerEnv:PATH}:/workspace/bin"
55+
},
56+
"mounts": [
57+
"source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"
58+
]
59+
}

0 commit comments

Comments
 (0)