Minimal example to setup a Jenkins-CI pipeline for data science projects on OpenShift in a couple of minutes. The goal is to have one CI/CI for each project so that we have no snowflakes.
- Start Minishift with VirtualBox:
minishift start --vm-driver=virtualbox
- Create a new project:
oc new-project <project-name>
- Deploy Jenkins:
oc new-app jenkins-persistent
- Add custom Jenkins configuration for data science projects:
oc create -f config-map.yaml
- Deploy example application and expose route:
git clone https://github.com/idealo/ds-example-project.git
cd ds-example-project
oc new-app -f build-config.yml \
-p APPLICATION_NAME=ds-example-project \
-p GIT_URL=https://github.com/idealo/ds-example-project.git
oc new-app -f deployment-config.yml \
-p APPLICATION_NAME=ds-example-project
oc start-build ds-example-project-pipeline
oc expose svc/ds-example-project
- If you want to delete Jenkins and all the related resources then do:
oc delete all,configmaps,networkpolicy,rolebinding,serviceaccount -l app=jenkins-persistent
- Minishift 1.17 / OpenShift 3.9
- VirutalBox 5.2
See LICENSE for details.