Installing the zoscb-encrypt CLI tool
You can install the zoscb-encrypt CLI tool by downloading and extracting the binary from the Docker image.
Before you begin
- Ensure that Ansible is installed. For more information about installing Ansible, see Installing Ansible
.
- Ensure that the Red Hat® OpenShift® CLI is installed. For more information about installing the OpenShift CLI, see Getting started with the OpenShift CLI
.
- Use a supported operating system and architecture, such as macOS (Intel® and Apple silicon) or Linux® (amd64 and s390x).
Procedure
-
Run the following command to download and extract the binary for your operating system and architecture to a
tempdirectory on your local file system:mkdir -vp temp/ OS=$(uname -s | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m | sed -E "s/i686|x86_64/amd64/g") oc image extract icr.io/cpopen/ibm-zoscb-encryption-cli:latest --path /bin/${OS}-${ARCH}-zoscb-encrypt:temp/ -
Run the following command to globally access the CLI in your terminal:
OS=$(uname -s | tr '[:upper:]' '[:lower:]') ARCH=$(uname -m | sed -E "s/i686|x86_64/amd64/g") chmod +x temp/${OS}-${ARCH}-zoscb-encrypt sudo mv temp/${OS}-${ARCH}-zoscb-encrypt /usr/local/bin/zoscb-encrypt rm -rf temp -
(Optional) If you're using macOS and a window appears after running the
zoscb-encryptcommand, complete the following steps:
-
Click Cancel to close the window.
-
Open System Settings.
-
Click Privacy & Security.
-
Scroll down to Security and click Allow Anyway to grant permission to the
zoscb-encryptapplication.
-
Procedure result
The zoscb-encrypt CLI tool is installed on your local machine.
Next step
You can use the tool to generate encrypted credential Secret and GitHub token Secret that can be used with z/OS® Cloud Broker. For more information, see Using the zoscb-encrypt CLI tool.