lbroudoux / monolith

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoolStore Monolith

This repository has the complete coolstore monolith built as a Java EE 7 application. To deploy it on OpenShift Container Platform (OCP) follow the instructions below

Pre requisite

  • Access to a OCP cluster using 3.5 or later.

  • OpenShift Command Client tool (eg. oc) installed locally

  • Authenticated from the command line client to the cluster

      oc login <url>
    

Build and deploy using the GitHub repo

To build and deploy using the github repo there is no need to clone this repo locally. All that is required is to create a project and process and create the application according to the template.

NOTE: A source deployment takes longer than a binary deployment

Create a new project (or use an existing)

oc new-project coolstore

Deploy and start the build

oc process -f https://raw.githubusercontent.com/coolstore/monolith/master/src/main/openshift/template.json | oc create -f -

Build and deploy using the binary deployment

Clone the project to a local directory

git clone https://github.com/coolstore/monolith.git coolstore-monolith
cd coolstore-monolith

Build the project using openshift profile (use --offine if you downloaded the dependencies)

mvn -Popenshift package

Create a new project (or use an existing)

oc new-project coolstore

Create the app

oc process -f src/main/openshift/template-binary.json | oc create -f -

Start the build

oc start-build coolstore --from-file=deployments/ROOT.war

To deploy the production environment and Jenkins pipeline

oc process -f src/main/openshift/template-prod.json | oc create -f -

Manually start the pipeline

oc start-build monolith-pipeline

About


Languages

Language:Java 56.7%Language:JavaScript 28.4%Language:HTML 14.5%Language:CSS 0.3%