-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
29 lines (24 loc) · 1015 Bytes
/
Containerfile
File metadata and controls
29 lines (24 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG OPA_VERSION=0.67.0
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
ARG OPA_VERSION
LABEL name="Preflight Post Process" \
vendor="The OpDev Team" \
maintainer="The OpDev Team" \
version="1" \
summary="Post-processing Preflight results." \
description="Provides opa cli and rego definitions for post-processing Preflight results." \
url="https://github.com/opdev/preflight-post-process-opa"
COPY LICENSE /licenses/LICENSE
COPY preflight_postprocess.rego /preflight_postprocess.rego
# By default, skip-config.json is an empty config file. The user is expected to
# overwrite it, though this isn't a strict requirement.
COPY empty-skip-config.json /empty-skip-config.json
RUN ln -sf /empty-skip-config.json /skip-config.json
# Install `jq` and `opa`
RUN microdnf install -y jq \
&& curl \
--location \
--output /usr/local/bin/opa \
https://openpolicyagent.org/downloads/v${OPA_VERSION}/opa_linux_amd64_static \
&& chmod 755 /usr/local/bin/opa \
&& opa version