Skip to content

Commit 41cf366

Browse files
committed
Update
1 parent 0875bd0 commit 41cf366

File tree

4 files changed

+168
-253
lines changed

4 files changed

+168
-253
lines changed
Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,53 @@
11
{
22
"name": "Java",
3-
"image": "mcr.microsoft.com/devcontainers/java",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
44

55
"features": {
6-
// "ghcr.io/thomasvitale/devcontainers-features/flox:1": {},
7-
"ghcr.io/devcontainers/features/nix:1": {},
6+
"ghcr.io/devcontainers/features/nix:1": {
7+
"extraNixConfig": "extra-trusted-substituters = https://cache.flox.dev, extra-trusted-public-keys = flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
8+
},
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "24",
11+
"jdkDistro": "graalce"
12+
},
813
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
914
},
1015

11-
//"postCreateCommand": "flox activate",
12-
"postCreateCommand": ".devcontainer/install-flox.sh && flox activate",
16+
"postCreateCommand": ".devcontainer/postCreateCommand.sh && flox activate",
1317

1418
"customizations": {
15-
"vscode": {
16-
"settings": {},
17-
"extensions": [
18-
"vscjava.vscode-java-pack",
19-
"vscjava.vscode-java-debug",
20-
"vscjava.vscode-java-dependency",
21-
"vscjava.vscode-java-test",
22-
"redhat.java",
23-
"redhat.vscode-yaml",
24-
"vmware.vscode-boot-dev-pack",
25-
//"flox.flox",
26-
// Excluding the Gradle extension as it breaks the Spring Boot DevTools
27-
"-vscjava.vscode-gradle"
28-
]
29-
}
30-
},
19+
"vscode": {
20+
"settings": {
21+
"terminal.integrated.defaultProfile.linux": "bash",
22+
"terminal.integrated.profiles.linux": {
23+
"bash": {
24+
"path": "/bin/bash",
25+
"args": ["-c", "flox activate && exec bash"]
26+
}
27+
}
28+
},
29+
"extensions": [
30+
// Language Support for Java(TM) by Red Hat
31+
"redhat.java",
32+
// Debugger for Java
33+
"vscjava.vscode-java-debug",
34+
// Test Runner for Java
35+
"vscjava.vscode-java-test",
36+
// Project Manager for Java
37+
"vscjava.vscode-java-dependency",
38+
// IntelliCode
39+
"VisualStudioExptTeam.vscodeintellicode",
3140

32-
"forwardPorts": [
33-
8080
34-
]
41+
// Spring Boot Extension Pack
42+
"vmware.vscode-boot-dev-pack",
43+
44+
// YAML
45+
"redhat.vscode-yaml"
46+
]
47+
}
48+
},
49+
50+
"forwardPorts": [
51+
8080
52+
]
3553
}

0 commit comments

Comments
 (0)