GithubHelp home page GithubHelp logo

bygui86 / rest-springboot-openshift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lordofthejars/rest-springboot-openshift

0.0 1.0 0.0 160 KB

License: Apache License 2.0

XSLT 5.45% HTML 89.95% Java 4.60%

rest-springboot-openshift's Introduction

Spring Boot + OpenShift

This example shows how to use Fabric8 Maven plugin for generating OpenShift/Kubernetes resources of a Spring Boot application. Also shows how to use Arquillian Cube together with Fabric8 to run deployment tests to ensure that the application will work when deployed into OpenShift cluster.

Previous steps

  • git clone [email protected]:lordofthejars/rest-springboot-openshift.git

  • minishift start I have tested with OpenShift Origin 3.6.0

  • oc login

Run tests

mvn clean verify -Popenshift,openshift-it -Denv.init.enabled=true -DenableImageStreamDetection=true

This command will compile project and run tests using Spring Test framework. After that uses Fabric8 Maven plugin to generate openshift.json, kubernetes.json and spring-boot-http-is.yml (for Image Stream generation).

Then it runs deployment test (io.openshift.booster.OpenShiftIT) which creates a temporal namespace (itest-xxxx), apply Fabric8 generated resources and finally when everything is deployed and up and running, it executes the test method.

Warning
Sometimes the first time you run Fabric8 Maven plugin you get an HTTP 504 error. Just rerun again the build and it will work.

rest-springboot-openshift's People

Contributors

cmoulliard avatar edewit avatar gastaldi avatar radekkoubsky avatar lordofthejars avatar jfclere avatar alrubinger avatar apupier avatar matzew 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.