# s2i-java **Repository Path**: jun1024/s2i-java ## Basic Information - **Project Name**: s2i-java - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-03-06 - **Last Updated**: 2024-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README == OpenShift S2I Builder for Java This Source-to-Image Builder let's you create projects targetting Java OpenJDK 8 and built with: * maven * gradle NOTE: If a project has a pom.xml and a build.gradle, maven will take precedence This builder/runtime s2i image can be used with SpringBoot, Vert.X, Wildfly Swarm, DropWizard and many other microservices frameworks. == 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 ---- MAVEN_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://gitee.com/jun1024/s2i-java/raw/master/ose3/s2i-java-imagestream.json ---- * 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 == Samples There is a lot of example SpringBoot applications https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples[here]