S2I Builder for Openshift SpringBoot CICD
4.0K
s2i-boot(Source-to-Image Builder) let's you create projects targeting SpringBoot Appliction, build with Java OpenJDK 8 and maven
Tested at Openshift 3.6.x and 3.7.x
-e -DskipTests packagemvn -f ${ENABLE_SONAR_PATH} sonar:sonar after build. Default is empty, disable. When enable, must settings $NABLE_NEST_SETTINGSmvn deploy, Ignore the MAVEN_ARGS and ENABLE_SONAR_PATH.If you do not specify any BUILDER_ARGS, by default the s2i image will use the following:
MAVEN_ARGS="package -DskipTests"
First load all the needed resources in a project.
oc create -f https://raw.githubusercontent.com/linzhaoming/s2i-boot/master/openshift/s2i-boot-imagestream.yml
Importing the template example
$ oc create -f https://raw.githubusercontent.com/linzhaoming/s2i-boot/master/openshift/example-s2i-boot.yml
Once the builder s2i-boot has been registered, you can create an app with:
There is a lot of example SpringBoot applications here
Content type
Image
Digest
Size
217.1 MB
Last updated
over 8 years ago
docker pull linzhaoming/s2i-boot