OpenShift CodeReady Containers

Use JayeX and OpenShift 4.x on your laptop

This guide will walk you though how to setup JayeX on your laptop using OpenShift 4.x with CodeReady Containers

Prerequisites

crc config set cpus 6
crc config set memory 11264

crc start
  • once your cluster boots up you can setup your environment…
eval $(crc oc-env)

You can copy/paste the oc login -u kubeadmin login command….

oc login -u kubeadmin -p XXXX https://api.crc.testing:6443
  • to allow Tekton to be installed on OpenShift you also need to run the following commands:
oc new-project tekton-pipelines
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-controller
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-webhook

Setup

ngrok http http://hook-jx.apps-crc.testing
  • copy your personal ngrok domain name of the form abcdef1234.ngrok.io into the charts/jenkins-x/jxboot-helmfile-resources/values.yaml file in the ingress.customHosts.hosts file so that your file looks like this…
ingress:
  customHosts:
    hook: "abcdef1234.ngrok.io"
...
  • git add, commit and push your changes:
git add *
git commit -a -m "fix: configure webhooks"
git push origin master
jx ns jx