Simple java environment generator image for developing use case.
107
Simple java environment generator image. Uses latest ubuntu and latest sdkman version to generate java specific environments, version 2 only support SpringBoot and Quarkus project creation or installation through the docker compose or cli.
services:
quarkus_java_21:
image: 'dreamy236/java_env:v2'
ports:
- '8080:8080'
container_name: quarkus_java_21
stdin_open: true
environment:
- JAVA_VERSION=21.0.1-amzn
- APP_NAME=testing-quarkus
- FRAMEWORK=quarkus
- QK_DP=resteasy-reactive,hibernate-orm,resteasy-jsonb
tty: true
restart: always
services:
quarkus_java_21:
image: 'dreamy236/java_env:v2'
ports:
- '8080:8080'
container_name: quarkus_java_21
stdin_open: true
environment:
- JAVA_VERSION=21.0.1-amzn
- APP_NAME=testing-spring
- FRAMEWORK=spring
- SB_DP=web,data-jpa
tty: true
restart: always
If the container is not attaching the port correctly, or you try to test an API using localhost: and it just says theres nothing running.
Add this line inside the application.properties
%dev.quarkus.http.host=0.0.0.0
This will tell the quarkus app to attach to any host port assigned, but only for the dev environment.
Content type
Image
Digest
sha256:f90e2cbeb…
Size
146.7 MB
Last updated
over 1 year ago
docker pull dreamy236/java_env:v2