Skip to content

mvilche/wildfly-thorntail

Repository files navigation

Java Wildfly Thorntail S2I Images Alpine Linux (DEPRECTAED)

DEPRECATED IN FAVOR OF https://github.com/mvilche/java-microservices-s2i

Docker Stars Docker Pulls Docker Automated Docker Build

Features

  • Non-root
  • Openshift compatible
  • S2i build images
  • Maven
  • Jolokia java monitoring

Deploy Environments

Environment Details
TIMEZONE Set Timezone (America/Montevideo, America/El_salvador)
JAVA_OPTS set JAVA_OPTS options
APP_OPTIONS set extra arguments when applicattion start
WAITFOR_HOST set name host
WAITFOR_PORT set port for WAITFOR_HOST

Build Environments

Environment Details
EXTRA_REPO Compile extra repo
TAG_VERSION Project version
MVN_OPTS Maven options
NEXUS_MIRROR_URL Nexus repository override repository in pom.xml

How use in Openshift

oc process -f https://raw.githubusercontent.com/mvilche/wildfly-thorntail/master/wildfly-thorntail-s2i-template-dev.yaml \ 
-p APP_NAME=myapp \
-p VERSION_JDK=11 \ 
-p REPO_GIT=https://github.com/myuser/java-sample-app.git
-p SOURCE_SECRET=github | oc create -f -

Generate builder image

 docker build -t wildfly-thorntail-s2i:openjdk11-jdk -f openjdk11/Dockerfile.jdk myapp

Php application image use s2i

s2i build https://github.com/myuser/java-sample-app.git wildfly-thorntail-s2i:openjdk11-jdk myapp:latest --incremental

Run application

docker run -p 8080:8080 myapp:latest

How use s2i

https://github.com/openshift/source-to-image

License

Martin vilche