Chapter 2. Installing the Conforma command line
Install the Conforma command-line interface (CLI) to validate and inspect container images and their attestations from your local workstation.
Prerequisites
- A working Red Hat Trusted Artifact Signer installation on Red Hat OpenShift Container Platform (OCP) version 4.13 or higher.
-
A workstation with the
cosignandocbinary files installed. - Access to the OCP web console.
Procedure
Download the
ecbinary file from the OCP cluster.- Log in to the OCP web console. From the home page, click the ? icon, select Command line tools, go to the ec download section, then click the link for your platform.
Open a terminal on your workstation, and decompress the binary
.gzfile by running the following command:gunzip ec-amd64.gz
$ gunzip ec-amd64.gzCopy to Clipboard Copied! Toggle word wrap Toggle overflow Make the binary executable by running the following command:
chmod +x ec-amd64
$ chmod +x ec-amd64Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Move and rename the binary to a location within your
$PATHenvironment:sudo mv ec-amd64 /usr/local/bin/ec
$ sudo mv ec-amd64 /usr/local/bin/ecCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
-
Run the
ec versioncommand. The result should be the version of the Conforma CLI that you just installed.