Skip to content

Commit ddf6438

Browse files
authored
Merge pull request #5 from nulab/CASHEW_NUTS/devcontainer
[chore]add devcontainer
2 parents 65b4008 + 216617e commit ddf6438

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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:1-21-bullseye",
7+
"features": {
8+
"ghcr.io/devcontainers/features/java:1": {
9+
"version": "none",
10+
"installMaven": "true",
11+
"installGradle": "false"
12+
},
13+
"ghcr.io/devcontainers/features/aws-cli:1": {},
14+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
15+
},
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"Oracle.oracle-java",
20+
"redhat.java",
21+
"vscjava.vscode-maven"
22+
]
23+
}
24+
},
25+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26+
// "forwardPorts": [],
27+
// Use 'postCreateCommand' to run commands after the container is created.
28+
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y fontconfig libfontconfig1-dev fonts-liberation fonts-dejavu-core",
29+
// Container environment variables for Java headless mode
30+
"containerEnv": {
31+
"JAVA_TOOL_OPTIONS": "-Djava.awt.headless=true -Dfile.encoding=UTF-8",
32+
"MAVEN_OPTS": "-Djava.awt.headless=true -Xmx2g"
33+
},
34+
// Configure tool-specific properties.
35+
// "customizations": {},
36+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37+
// "remoteUser": "root"
38+
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ target/
4242
# local
4343
.vscode/
4444
.DS_Store
45-
.devcontainer/
4645
.claude/

0 commit comments

Comments
 (0)