forked from openshift-knative/hack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMustGather.dockerfile.tmpl
More file actions
35 lines (26 loc) · 1.12 KB
/
Copy pathMustGather.dockerfile.tmpl
File metadata and controls
35 lines (26 loc) · 1.12 KB
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
30
31
32
33
34
35
# DO NOT EDIT! Generated Dockerfile for {{.main}}.
ARG CLI_ARTIFACTS={{ .oc_cli_artifacts }}
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal
FROM $CLI_ARTIFACTS AS cli-artifacts
FROM $RUNTIME
ARG TARGETARCH
COPY --from=cli-artifacts /usr/share/openshift/linux_$TARGETARCH/{{ .oc_binary_name }} /usr/bin/oc
# Copy all collection scripts to /usr/bin
COPY must-gather/bin/* /usr/bin/
COPY LICENSE /licenses/
RUN microdnf install -y rsync tar
ENV LOGS_DIR="/must-gather"
RUN mkdir -p $LOGS_DIR && \
chown -R 65532:65532 $LOGS_DIR
USER 65532
LABEL \
com.redhat.component="openshift-serverless-1-{{.project_dashcase}}rhel9-container" \
name="openshift-serverless-1/svls-{{.project_dashcase}}rhel8" \
version={{.version}} \
summary="Red Hat OpenShift Serverless 1 {{.project}}" \
maintainer="serverless-support@redhat.com" \
description="Red Hat OpenShift Serverless 1 {{.project}}" \
io.k8s.display-name="Red Hat OpenShift Serverless 1 {{.project}}" \
io.k8s.description="Red Hat OpenShift Serverless {{.project}}" \
io.openshift.tags="{{.main}}"
ENTRYPOINT /usr/bin/gather