- Non-root
- Okd Ready
- Kubernetes Ready
- S2i build images
- S2i runtime images
- Maven (Jdk images only)
- Jolokia Java monitoring
- Prometheus Java monitoring
- Glowroot Java monitoring
- Support Wildfly Throntail, Wildfly Bootable, Quarkus, Spring Boot, Custom
Environment | Details |
---|---|
TIMEZONE | Set Timezone (America/Montevideo, America/El_salvador) |
EXTRA_JAVA_OPTS | Add extra options to JAVA_OPTS |
OVERRIDE_JAVA_OPTS | Override default JAVA_OPTS options |
APP_OPTIONS | set extra arguments when application start |
WAITFOR_HOST | set name host |
WAITFOR_PORT | set port for WAITFOR_HOST |
JOLOKIA_ENABLE | Enable jolokia jmx monitoring |
PROMETHEUS_ENABLE | Enable prometheus jmx monitoring |
GLOWROOT_ENABLE | Enable glowroot jmx monitoring |
GLOWROOT_CENTRAL_COLLECTOR | Send jmx metrics to Glowroot Central - Example http://collector:8181 |
GLOWROOT_CENTRAL_COLLECTOR_AGENTID | Agent.id name when send data to Glowroot Central - Example myapp |
Environment | Details |
---|---|
MVN_OPTS | Maven options when build |
MVN_OVERRIDE_COMMAND | Override default mvn command. Default mvn clean package |
GRADLE_OPTS | Gradle options |
NEXUS_MIRROR_URL | Nexus repository override repository in pom.xml |
NEXUS_SERVER_PASSWORD | Nexus repository auth password |
NEXUS_SERVER_USERNAME | Nexus repository auth username |
NEXUS_SERVER_ID | Nexus repository id name. |
QUARKUS_PACKAGE_TYPE | Quarkus package type values: fast-jar, uber-Jar |
RUNTIME_ASSEMBLE_CUSTOM_COMMAND_RUN | Run custom command in assemble-runtime process |
ARTIFACTORY_NAME | Search for artifcatory with specific name |
Example build opendjdk 11 alpine image
docker build -t java-microservices:jdk11-alpine -f openjdk11/Dockerfile.jdk.alpine contrib
s2i build https://github.com/myuser/java-sample-app.git java-microservices:jdk11-alpine myapp:latest --incremental
docker run -p 8080:8080 myapp:latest
https://github.com/openshift/source-to-image
Martin vilche