]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Dockerfile.build: make FOR_MAKE_CHECK a build argument
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 13 Oct 2025 20:23:58 +0000 (16:23 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 13 Oct 2025 22:07:45 +0000 (18:07 -0400)
Set it only during install time.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Dockerfile.build

index f8d06f638c0b616184a456f1c9be31c64e56b60e..0586cdd37a4b5148f5f54317a06d401e64c46daa 100644 (file)
@@ -17,7 +17,6 @@ COPY \
 
 
 FROM $DISTRO
-ENV FOR_MAKE_CHECK=1
 ARG DISTRO
 ARG CEPH_CTR_SRC=/usr/local/src/ceph
 ARG CLEAN_DNF=yes
@@ -25,6 +24,7 @@ ARG CEPH_BASE_BRANCH=main
 ARG SCCACHE_VERSION=v0.8.2
 ARG SCCACHE_REPO=https://github.com/mozilla/sccache
 ARG WITH_CRIMSON=true
+ARG FOR_MAKE_CHECK=1
 COPY --from=bootstrap ${CEPH_CTR_SRC} ${CEPH_CTR_SRC}
 # Note that we do not use ENV for the following. This is because we do not
 # want them permamently stored in the container's layer.
@@ -33,6 +33,7 @@ RUN DISTRO=$DISTRO \
     CLEAN_DNF=$CLEAN_DNF \
     CEPH_CTR_SRC=${CEPH_CTR_SRC} \
     WITH_CRIMSON=${WITH_CRIMSON} \
+    FOR_MAKE_CHECK=${FOR_MAKE_CHECK} \
     bash -x ${CEPH_CTR_SRC}/buildcontainer-setup.sh
 RUN \
     SCCACHE_URL="${SCCACHE_REPO}/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \