Skip to content

OpenShift's Java S2I Builder image. Suitable for java (fatjar) types of applications, microservices, springboot, vert.x, wildfly swarm, dropwizard,...

License

Notifications You must be signed in to change notification settings

tasman666/s2i-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ENV Options

  • BUILDER_ARGS: Allows you to specify options to pass to maven or gradle

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 here

About

OpenShift's Java S2I Builder image. Suitable for java (fatjar) types of applications, microservices, springboot, vert.x, wildfly swarm, dropwizard,...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 55.9%
  • Dockerfile 28.2%
  • Java 13.1%
  • Makefile 2.8%