forked from rh-ecosystem-edge/kernel-module-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.must-gather
26 lines (18 loc) · 921 Bytes
/
Dockerfile.must-gather
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
FROM quay.io/openshift/origin-cli:4.20 as builder
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
RUN microdnf update -y \
&& microdnf install -y tar rsync findutils gzip iproute util-linux shadow-utils \
&& microdnf clean all
LABEL org.opencontainers.image.title=kmm-operator-must-gather
LABEL org.opencontainers.image.description="Must-gather image for KMMO"
LABEL org.opencontainers.image.url=https://github.com/rh-ecosystem-edge/kernel-module-management
LABEL org.opencontainers.image.source=https://github.com/rh-ecosystem-edge/kernel-module-management
LABEL org.opencontainers.image.version=main
# Copy oc binary
COPY --from=builder /usr/bin/oc /usr/bin/oc
# copy all collection scripts to /usr/bin
COPY must-gather/* /usr/bin/
RUN ["groupadd", "--system", "-g", "201", "kmm"]
RUN ["useradd", "--system", "-u", "201", "-g", "201", "-s", "/sbin/nologin", "kmm"]
USER 201:201
CMD /usr/bin/gather