]> 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 <phlogistonjohn@asynchrono.us>
Tue, 14 Oct 2025 20:31:54 +0000 (16:31 -0400)
Set it only during install time.

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

index d75ebdfa04a331393eb675c7543eaa6cb2a78a7d..015b3be935b1becf2c1e8d7748cc132905c95c07 100644 (file)
@@ -17,13 +17,13 @@ COPY \
 
 
 FROM $DISTRO
-ENV FOR_MAKE_CHECK=1
 ARG DISTRO
 ARG CEPH_CTR_SRC=/usr/local/src/ceph
 ARG CLEAN_DNF=yes
 ARG CEPH_BASE_BRANCH=main
 ARG SCCACHE_VERSION=0.8.2
 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.
@@ -32,6 +32,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="https://github.com/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl.tar.gz"; \