Skip to content

Commit 71ab66d

Browse files
committed
Update oc-compliance installation method
The oc-compliance plugin is a handy tool for interacting with compliance scans and results, but it doesn't come installed with the OpenShift client. Instead, users have to install it separately. The documented method for installing this plugin requires you to pull a container image and copy the `oc-compliance` binary from the image. The documented method hangs redirecting the binary output to a local file on the host. This commit updates the command to work around that issue by using the cp command instead of redirecting output. Related-Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2049926
1 parent 0fa98c7 commit 71ab66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/oc-compliance-installing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
+
1313
[source,terminal]
1414
----
15-
$ podman run --rm --entrypoint /bin/cat registry.redhat.io/compliance/oc-compliance-rhel8 /usr/bin/oc-compliance > ~/.local/bin/oc-compliance
15+
$ podman run --rm -v ~/.local/bin:/mnt/out:Z registry.redhat.io/compliance/oc-compliance-rhel8 /bin/cp /usr/bin/oc-compliance /mnt/out/
1616
----
1717
+
1818
.Example output

0 commit comments

Comments
 (0)