File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -42,5 +42,4 @@ target/
4242# local
4343.vscode /
4444.DS_Store
45- .devcontainer /
4645.claude /
You can’t perform that action at this time.
0 commit comments