Public | Automated Build

Last pushed: a year ago
Short Description
OpenShift 3 S2I Builder for Spring Boot
Full Description

== OpenShift S2I Builder for Spring Boot
This Source-to-Image Builder let's you create projects targetting Spring Boot and built with:

  • maven
  • gradle

NOTE: If a project has a pom.xml and a build.gradle, maven will take precedence

== BUILD ENV Options

  • APP_SUFFIX: Jar file suffix to use to locate the generated artifact to use (e.g. xxxxx${APP_SUFFIX}.jar)
  • BUILDER_ARGS: Allows you to specify options to pass to maven or gradle

== RUN ENV Options

  • APP_OPTIONS: Options to pass to java -jar app.jar ${APP_OPTIONS}

== Defaults
If you do not specify any BUILDER_ARGS, by default the s2i image will use the following:

  • Maven

BUILDER_ARGS="package -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga"

  • Gradle

BUILDER_ARGS="build -x test"

== Test in OpenShift

  • First load all the needed resources in a project.

oc create -f https://raw.githubusercontent.com/jorgemoralespou/springboot-s2i/master/ose3/springboot-s2i-imagestream.json

  • Once the builder springboot-s2i has been registered, you can create an app with:

Instant app already provided as template Using the springboot-s2i builder image using a regular Git repository

== Samples
There is a lot of example SpringBoot applications https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples[here]

Docker Pull Command
Owner
jorgemoralespou
Source Repository

Comments (1)
atwong
a year ago

This URI for springboot doesn't exist anymore