| stage | Verify |
|---|---|
| group | Runner Core |
| info | To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments> |
| description | Install GitLab Runner manually on z/OS. |
| title | Install GitLab Runner manually on z/OS |
{{< details >}}
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
{{< /details >}}
GitLab Runner for IBM z/OS has been certified by GitLab and can run CI/CD jobs natively on z/OS mainframe environments.
You can download and install GitLab Runner on z/OS manually from a pax archive.
-
To use GitLab Runner, you need the following authorized program analysis reports (
APARs) with program temporary fixes (PTFs):- z/OS 2.5
- OA62757
- PH45182
- z/OS 3.1
- OA62757
- PH57159
- z/OS 2.5
-
GitLab Runner expects bash to be installed at
/bin/bashto execute shell commands. If bash is not installed at this location, create a symlink to the installed version:ln -s <TARGET_BASH> /bin/bash
To install GitLab Runner:
-
Download the
paxfileinto your chosen install directory. -
Install the package for your system:
pax -ppx -rf gitlab-runner-<VERSION>.pax.Z
The installed files are unpacked to the
gitlab-runnerdirectory in the install location. -
Give the file permissions to execute:
chmod +x <INSTALL_PATH>/bin/gitlab-runner
-
Export GitLab Runner and add it to your
PATH:export GITLAB_RUNNER=<INSTALL_PATH>/gitlab-runner/bin export PATH=${GITLAB_RUNNER}:${PATH}
You can run GitLab Runner directly or as a started task.
To run GitLab Runner by calling the executable:
-
Go to the directory
<INSTALL_PATH>/bin. -
Start the service:
gitlab-runner start
To keep the GitLab Runner process available, run it as a started task.
-
Wrap the executable in a shell script
gitlab-runner.sh:#! /bin/sh <INSTALL_PATH>/bin/gitlab-runner start
-
Define a
jclstarted task program and execute it to run as an ongoing process://GLRST PROC CNFG='<PATH_TO_SCRIPT>' //* //GLRST EXEC PGM=BPXBATSL,REGION=0M,TIME=NOLIMIT, // PARM='PGM &CNFG./gitlab-runner.sh' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //* // PEND