This Source-to-Image Builder let's you create projects targetting Java OpenJDK 8 and built with maven
This builder/runtime s2i image can be used with SpringBoot, Vert.X, Wildfly Swarm, DropWizard and many other microservices frameworks.
- MAVEN_ARGS: Allows you to specify options to pass to maven (Default:
install
) - ARTIFACT_DIR: Path to find where the jar files are created when build (Default:
target
)
- JAVA_OPTS: Options to pass to
java -jar app.jar ${JAVA_OPTS}
If you do not specify any MAVEN_ARGS
, by default the s2i image will use the following:
MAVEN_ARGS="install"
--
If you do not specify any ARTIFACT_DIR
, by default the s2i image will use the following:
ARTIFACT_DIR="target"
- First load all the needed resources in a project.
oc import image luiscoms/s2i-java --all
- Once the builder s2i-java has been registered, you can create an app with:
- Instant app already provided as template
- Using the s2i-java builder image using a regular Git repository
There is a lot of example SpringBoot applications here