Skip to content

danielorlan/cp4i-mq-ace-tekton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial: Setup IBM MQ with Tekton Pipeline on Openshift 4.4

Requirements

  1. Openshift 4.4
  2. IBM Cloud Pak for Integration V2020.2.1
  3. IBM MQ V 9.2.0.0-r1 and mq.ibm.com/v1beta1 Operator ibm-mq.v1.1.0
  4. A namespace called cp4i where the MQ Operator ^ is installed
  5. An entitlement key called ibm-entitlement-key Get from here for IBM Employees
  6. A Github token see here for creating one

Steps

Step 1: Fork this repository

  • Follow GitHub’s documentation on how to fork a repo to create your own fork of this repo.

Step 2: Clone the forked repository onto your machine

Step 3: Modify and run the install script

  1. Open the file ./install/install.sh and insert the namespace where MQ is installed (cp4i, or MQ..) also your Git token and git usernname

    • MQ_NS=
    • GIT_TOKEN=paste git token here and remove brackets
    • GIT_USERNAME=paste github username here and remove brackets
  2. Update the Pipeline mq-pipeline (/tekton/pipelines/mq-pipeline.yaml) and change the TARGET_NAMESPACE to be the namespace where MQ is installed (cp4i, mq..)

  3. Update the PipelineResouce to point to the url of your forked repository

    • update line 8 of this file ./tekton/resources/mq-git-repo-resource.yaml and change the value
  4. Make the install script executable chmod +x ./install/install.sh

  5. Run the install script ./install/install.sh

Step 4: Add the route to Github WebHook

Follow steps here to add a webhook

Or here for pictures

  • Open your fork of the this repository in GitHub and navigate to the Webhooks menu. Then click the Add webhook button.

  • Set the Payload URL to the EventListener Route: oc get route el-el-cicd-mq-hook-route --template='http://{{.spec.host}}'

  • Set the Content type to application/json.

  • You aren’t using the Secret in this tutorial, so you can leave it blank.

  • Select Just the Push Event

Step 5: Test it out by commiting a change!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages