Giter VIP home page Giter VIP logo

s2i-boot's Introduction

Build Status Docker Pulls Docker Stars

s2i-boot: OpenShift S2I Builder for SpringBoot

The image is available directly from Docker Hub

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, 3.7.x

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
  • MAVEN_MIRROR_URL: Maven mirror url
  • ARTIFACT_DIR: How the locate the Running Artifact. Default is "target".
  • ENABLE_NEST_SETTINGS: Enable the s2i builder reading the proejct's configuration/settings.xml. Default is empty, disable.
  • MAVEN_ARGS: The maven args. Default is -e -DskipTests package
  • ENABLE_SONAR_PATH: Call mvn -f ${ENABLE_SONAR_PATH} sonar:sonar after build. Default is empty, disable. When enable, must settings $NABLE_NEST_SETTINGS
  • ENABLE_RELEASE: Call mvn deploy, Ignore the MAVEN_ARGS and ENABLE_SONAR_PATH.

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_ARGS="package -DskipTests"

Usage

  • 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:

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

Samples

There is a lot of example SpringBoot applications here

s2i-boot's People

Contributors

hzy0769 avatar linzhaoming avatar zhangbing3 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.