Minimal example to setup a Jenkins-CI pipeline for data science projects on OpenShift in a couple of minutes.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7193972 May 16, 2018

README.md

Jenkins-CI for Data Science Projects

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.

Getting Started

  1. Start Minishift with VirtualBox: minishift start --vm-driver=virtualbox
  2. Create a new project:
oc new-project <project-name>
  1. Deploy Jenkins:
oc new-app jenkins-persistent
  1. Add custom Jenkins configuration for data science projects:
oc create -f config-map.yaml
  1. 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

Notes

  • If you want to delete Jenkins and all the related resources then do:
oc delete all,configmaps,networkpolicy,rolebinding,serviceaccount -l app=jenkins-persistent

Requirements

  • Minishift 1.17 / OpenShift 3.9
  • VirutalBox 5.2

Copyright

See LICENSE for details.