Skip to content

Commit 265e1ff

Browse files
committed
Update
1 parent 52797ba commit 265e1ff

File tree

85 files changed

+7688
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+7688
-142
lines changed

create-cluster.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ echo "\n📦 Initializing Kubernetes cluster..."
66

77
kind create cluster --config kind-config.yml
88

9-
echo "\n🔌 Installing NGINX Ingress..."
9+
echo "\n🔌 Installing Contour Ingress..."
1010

11-
kapp deploy -a ingress-nginx -y \
12-
-f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
11+
kubectl apply -f https://projectcontour.io/quickstart/contour.yaml
12+
13+
sleep 5
14+
15+
kubectl wait --namespace projectcontour \
16+
--for=condition=ready pod \
17+
--selector=app=contour \
18+
--timeout=60s
19+
20+
kubectl wait --namespace projectcontour \
21+
--for=condition=ready pod \
22+
--selector=app=envoy \
23+
--timeout=60s
1324

1425
echo "\n⛵ Happy Sailing!\n"
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "Java",
3-
//"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
43
"build": {
54
"dockerfile": "Dockerfile"
65
},
@@ -9,26 +8,19 @@
98
"ghcr.io/devcontainers/features/java:1": {
109
"version": "24",
1110
"jdkDistro": "graalce"
12-
},
13-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
11+
}
1412
},
1513

1614
"postCreateCommand": "java -version",
1715

1816
"customizations": {
1917
"vscode": {
18+
"settings": {
19+
"terminal.integrated.defaultProfile.linux": "bash"
20+
},
2021
"extensions": [
21-
// Language Support for Java(TM) by Red Hat
22-
"redhat.java",
23-
// Debugger for Java
24-
"vscjava.vscode-java-debug",
25-
// Test Runner for Java
26-
"vscjava.vscode-java-test",
27-
// Project Manager for Java
28-
"vscjava.vscode-java-dependency",
29-
// IntelliCode
30-
"VisualStudioExptTeam.vscodeintellicode",
31-
22+
// Extension Pack for Java
23+
"vscjava.vscode-java-pack",
3224
// Spring Boot Extension Pack
3325
"vmware.vscode-boot-dev-pack",
3426

@@ -42,6 +34,17 @@
4234
},
4335

4436
"forwardPorts": [
45-
8080
46-
]
37+
8080
38+
],
39+
40+
"otherPortsAttributes": {
41+
"onAutoForward": "ignore"
42+
},
43+
44+
"mounts": [
45+
// Gradle cache
46+
"source=${localEnv:HOME}/.gradle,target=/home/vscode/.gradle,type=bind",
47+
// Maven cache
48+
"source=${localEnv:HOME}/.m2,target=/home/vscode/.m2,type=bind"
49+
]
4750
}

inner-loop/java/spring-boot/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ cd container-image/buildpacks
6767
You can use the [`pack`](https://buildpacks.io/docs/tools/pack/) CLI from the Cloud Native Buildpacks project to package the application as a container image.
6868

6969
```shell
70-
pack build demo \
71-
--builder docker.io/paketobuildpacks/builder-noble-java-tiny \
72-
--env BP_JVM_VERSION=24
70+
pack build demo
7371
```
7472

7573
For Spring Boot projects, Buildpacks integration is provided directly by the Spring Boot plugins for [Maven](https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#build-image) and [Gradle](https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#build-image), so you don't need to install any additional tool.
@@ -78,10 +76,18 @@ For Spring Boot projects, Buildpacks integration is provided directly by the Spr
7876
./gradlew bootBuildImage
7977
```
8078

79+
## Compose
80+
8181
Either way, you can run the application as follows.
8282

8383
```shell
8484
podman compose up -d
8585
```
8686

8787
You can also debug the application from your IDE. Check out the configuration in the `compose.yml` file, where the debug mode is enabled via convenient Buildpacks environment variables. Then, configure your IDE with a remote debugger on port `9090` and try out debugging the application while running as a container.
88+
89+
When you're done, you can stop the application with the following command.
90+
91+
```shell
92+
podman compose down
93+
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
# Install dependencies
4+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && \
5+
apt-get -y install --no-install-recommends httpie && \
6+
apt-get autoremove -y && \
7+
apt-get clean && \
8+
rm -rf /var/lib/apt/lists/* && \
9+
rm -rf /usr/share/doc && \
10+
rm -rf /usr/share/man
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "Java",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
7+
"features": {
8+
"ghcr.io/devcontainers/features/java:1": {
9+
"version": "24",
10+
"jdkDistro": "graalce"
11+
}
12+
},
13+
14+
"postCreateCommand": "java -version",
15+
16+
"customizations": {
17+
"vscode": {
18+
"settings": {
19+
"terminal.integrated.defaultProfile.linux": "bash"
20+
},
21+
"extensions": [
22+
// Extension Pack for Java
23+
"vscjava.vscode-java-pack",
24+
// Spring Boot Extension Pack
25+
"vmware.vscode-boot-dev-pack",
26+
27+
// YAML
28+
"redhat.vscode-yaml",
29+
30+
// Gradle Extension prevents Spring Boot DevTools from working
31+
"-vscjava.vscode-gradle"
32+
]
33+
}
34+
},
35+
36+
"forwardPorts": [
37+
8080
38+
],
39+
40+
"otherPortsAttributes": {
41+
"onAutoForward": "ignore"
42+
},
43+
44+
"mounts": [
45+
// Gradle cache
46+
"source=${localEnv:HOME}/.gradle,target=/home/vscode/.gradle,type=bind",
47+
// Maven cache
48+
"source=${localEnv:HOME}/.m2,target=/home/vscode/.m2,type=bind"
49+
]
50+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
run/
2+
cache/
3+
lib/
4+
log/
5+
!env/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "flox",
3+
"version": 1
4+
}

0 commit comments

Comments
 (0)