Git Product home page Git Product logo

atomic-oracle-java's Introduction

Simple Oracle Java binary builder image for Openshift

NOTE: Support only binary builds (--binary=true)

Use this image with Openshift

You can add this builder image build config to openshift namespace if you have enough privileges. Otherwise you have to use this "local" in your namespace

oc new-project testing-image
oc new-build --name atomic-oracle-java https://github.com/tahonen/atomic-oracle-java.git
oc start-build atomic-oracle-java --follow

Now you have builder image ready for use. If it is in namespace openshift then all users and namespaces can consume it.

Deploy sample application using this new image. Since image support only binary builds, you have to use Jenkins pipeline or local env to create Java binary (jar)

# clone source
git clone https://github.com/tahonen/hello-springboot.git
# create binary
mvn package -DskipTests

Now you have binary, lets deploy it to Openshift

oc new-build --name=hello-fatjar --binary=true -i atomic-oracle-java -l app=hello-fatjar
oc start-build hello-fatjar --from-dir target -l app=hello-fatjar --follow
oc new-app hello-fatjar -l app=hello-fatjar
oc expose svc hello-fatjar -l app=hello-fatjar

Thats it!

Using template to setup and test

You just need to process template and then start build pipeline for deploying service.

oc process -f https://raw.githubusercontent.com/tahonen/atomic-oracle-java/master/openshift/app-template.yml -p SERVICE=fatjar -p SOURCE_CODE=https://github.com/tahonen/hello-springboot.git | oc create -f -
# and then start pipeline. Pipeline name is in format $SERVICE-pipeline
oc start-build fatjar-pipeline

atomic-oracle-java's People

Stargazers

Natale Vinto avatar Antonio Gallego avatar

Watchers

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.