Coder Social home page Coder Social logo

xeonn / s2i-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgemoralespou/s2i-java

0.0 2.0 0.0 30 KB

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

License: Other

Makefile 3.93% Shell 77.81% Java 18.27%

s2i-java's Introduction

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://raw.githubusercontent.com/jorgemoralespou/s2i-java/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 here

s2i-java's People

Contributors

jorgemoralespou avatar szpak avatar philhug avatar siamaksade avatar soukron avatar

Watchers

Onn Khairuddin Ismail avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.