An OpenShift deployment of Anthony Bradley's Fragalysis, that automatically restarts the Graph (Neo4J) and Web (Django) application containers based on scheduled CI/CD jobs running in Jenkins.
The deployment creates a fragalysis-cicd
project and the following
OpenShift 3.7 deployments (services): -
- cartridge
- db
- graph (driven by an ImageStream)
- web (driven by an ImageStream)
For the demo (minishift) we also create: -
- A user ('diamond')
- A service account ('diamond')
You can create your own PVs in Minishift.
Follow the instructions in minishift/mkpvs.sh
.
Tested with Minishift using:
--openshift-version 3.6.1
--openshift-version 3.7.1
Assuming you ave a suitable minishift instance running,
from the minishift
directory run: -
$ eval $(minishift oc-env)
$ ./deploy.sh
This should create a fragalysis-cicd
project and deploy the services.
From the minishift
directory run: -
$ ./undeploy.sh
Note: the
project
andservice account
created bydeploy
is not removed byundeploy
. This is deliberate because the Jenkins CI/CD platform is currently installed (separately) into the same project.