Skip to content

Commit 80c23df

Browse files
committed
chore: add a devcontainer setup
1 parent c96f66d commit 80c23df

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
3+
{
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:0-17",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "none",
11+
"installMaven": "false",
12+
"installGradle": "false"
13+
},
14+
"ghcr.io/devcontainers-contrib/features/sbt-sdkman:2": {}
15+
},
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"scala-lang.scala",
20+
"lightbend.vscode-sbt-scala",
21+
"scalameta.metals"
22+
]
23+
}
24+
}
25+
26+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
27+
// "forwardPorts": [],
28+
29+
// Use 'postCreateCommand' to run commands after the container is created.
30+
// "postCreateCommand": "java -version",
31+
32+
// Configure tool-specific properties.
33+
// "customizations": {},
34+
35+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
36+
// "remoteUser": "root"
37+
}

0 commit comments

Comments
 (0)