Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PROMETHEUS_DUMP_PATH ?= $(shell find ./must-gather.local* -name prom_data.tar.gz
build: docker-build docker-push

docker-build:
${CONTAINER_ENGINE} build --build-arg BUILD_DATE=${BUILD_DATE} -f build/Dockerfile -t ${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG} .
${CONTAINER_ENGINE} build --pull --build-arg BUILD_DATE=${BUILD_DATE} -f build/Dockerfile -t ${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG} .

docker-push:
${CONTAINER_ENGINE} push ${IMAGE_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}
Expand Down
7 changes: 4 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM quay.io/openshift/origin-must-gather:4.22 as builder

FROM registry.access.redhat.com/ubi9-minimal:latest

# BUILD_DATE differs on every build, so declaring it here re-runs the package
# update rather than reusing a cached layer from an earlier build.
# BUILD_DATE differs on every build. The update below references it, so it
# re-runs rather than reusing a cached layer from an earlier build.
ARG BUILD_DATE=unknown
RUN microdnf -y update && \
RUN echo "Updating packages for build ${BUILD_DATE}" && \
microdnf -y update && \
microdnf -y install rsync tar gzip jq findutils && \
microdnf -y clean all

Expand Down
Loading