Skip to content

coolstore/monolith

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published