Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions image/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG BASE_REGISTRY=registry.access.redhat.com
ARG BASE_IMAGE=ubi8/ubi
ARG BASE_IMAGE=ubi8-minimal
ARG BASE_TAG=8.5

FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS extracted_bundle

COPY bundle.tar.gz /
WORKDIR /bundle
RUN tar -zxf /bundle.tar.gz
RUN microdnf install tar gzip && tar -zxf /bundle.tar.gz

FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}

Expand Down Expand Up @@ -38,9 +38,10 @@ RUN ln -s entrypoint-wrapper.sh /stackrox/admission-control && \
ln -s entrypoint-wrapper.sh /stackrox/sensor-upgrader && \
ln -s /assets/downloads/cli/roxctl-linux /stackrox/roxctl && \
rpm --import RPM-GPG-KEY-CentOS-Official && \
dnf upgrade -y && \
dnf install -y lz4 bzip2 /tmp/snappy.rpm && \
dnf clean all && \
microdnf upgrade && \
rpm -i /tmp/snappy.rpm && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you missing lz4 and bzip2 now?

Suggested change
rpm -i /tmp/snappy.rpm && \
microdnf install -y lz4 bzip2 && \
rpm -i /tmp/snappy.rpm && \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I wasn't sure we need them.

microdnf install lz4 bzip2 findutils && \
microdnf clean all && \
rm /tmp/snappy.rpm RPM-GPG-KEY-CentOS-Official && \
# (Optional) Remove line below to keep package management utilities
rpm -e --nodeps $(rpm -qa curl '*rpm*' '*dnf*' '*libsolv*' '*hawkey*' 'yum*') && \
Expand Down