Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

liatrio/image-builder-openshift

Repository files navigation

What is the image for?

The intended purpose of this image is for it to be used as a Jenkins agent. By using the installed features the user is able to create Jenkins pipelines that can deploy applications and services using OpenShift. An example of using this image as a Jenkins agent via Kubernetes can be seen below.

First, an example of configuring the pod template in yaml to create the agent.

jenkins:
  clouds:
    - kubernetes:
        name: "kubernetes"
        templates:
          - name: "image-builder-openshift"
            label: "image-builder-openshift"
            nodeUsageMode: NORMAL
            containers:
              - name: "image-openshift"
                image: "ghcr.io/liatrio/image-builder-openshift:${builder_images_version}"

And then specifying the agent in the Jenkinsfile for an example step.

stage('Build') {
  agent {
    label "image-builder-openshift"
  }
  steps {
    container('image-openshift') {
      sh "oc cluster up"
    }
  }
}

What is installed on this image?