Skip to content

Commit c7e6194

Browse files
committed
Bug 1975784, added oc-compliance plug-in installation procedure
1 parent 65c5296 commit c7e6194

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * security/oc_compliance_plug_in/oc-compliance-plug-in-using.adoc
4+
5+
[id="installing-oc-compliance_{context}"]
6+
= Installing the oc-compliance plug-in
7+
8+
.Procedure
9+
10+
. Extract the `oc-compliance` image to get the `oc-compliance` binary:
11+
+
12+
[source,terminal]
13+
----
14+
$ podman run --rm --entrypoint /bin/cat registry.redhat.io/compliance/oc-compliance-rhel8 /usr/bin/oc-compliance > ~/.local/bin/oc-compliance
15+
----
16+
+
17+
.Example output
18+
+
19+
[source,terminal]
20+
----
21+
W0611 20:35:46.486903 11354 manifest.go:440] Chose linux/amd64 manifest from the manifest list.
22+
----
23+
+
24+
You can now run `oc-compliance`.

security/oc_compliance_plug_in/oc-compliance-plug-in-using.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ toc::[]
88
Although the xref:../../security/compliance_operator/compliance-operator-understanding.adoc#understanding-compliance-operator[Compliance Operator] automates many of the checks and remediations for the cluster, the full process of bringing a cluster into compliance often requires administrator interaction with the Compliance Operator API and other components. The `oc-compliance` plug-in makes the process easier.
99

1010

11+
include::modules/oc-compliance-installing.adoc[leveloffset=+1]
12+
1113
include::modules/oc-compliance-fetching-raw-results.adoc[leveloffset=+1]
1214

1315
include::modules/oc-compliance-rerunning-scans.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)