Skip to content

Commit 48f262c

Browse files
committed
Create devcontainer.json (#692)
1 parent 8c29c37 commit 48f262c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "TJ-Bot",
3+
"image": "mcr.microsoft.com/devcontainers/universal:2",
4+
"hostRequirements": {
5+
"cpus": 1,
6+
"memory": "1gb",
7+
"storage": "2gb"
8+
},
9+
"features": {
10+
"ghcr.io/devcontainers/features/java:1": {
11+
"version": "18.0.2.1-tem",
12+
"jdkDistro": "tem",
13+
"installGradle": true
14+
},
15+
"ghcr.io/devcontainers-contrib/features/pre-commit:1": {}
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"vscjava.vscode-java-pack",
21+
"vscjava.vscode-gradle",
22+
"alexcvzz.vscode-sqlite",
23+
"richardwillis.vscode-spotless-gradle"
24+
],
25+
"settings": {
26+
"[java]": {
27+
"spotlessGradle.format.enable": true,
28+
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"
29+
}
30+
}
31+
}
32+
},
33+
"postCreateCommand": {
34+
"config": "cp application/config.json.template application/config.json",
35+
"gradle": "gradle build"
36+
}
37+
}

0 commit comments

Comments
 (0)