]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
script/build-with-container: skip dnf cache dir volume mounts on docker
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 20 Feb 2025 14:50:49 +0000 (09:50 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 6 Mar 2025 21:13:16 +0000 (16:13 -0500)
commit5b0a01d03bdce98e0b8bb17f2879d3f9598474d6
tree5c903718d73dccc51295427f9c1d4e6788b24f44
parente58c8a65f1fd296e52de7b6aafab5b8ef0b46a19
script/build-with-container: skip dnf cache dir volume mounts on docker

When using docker the --volume option is not available during build
(docker [buildx] build), unlike podman. Since passing these volumes must
be conditional on them being set up I see no way to handle this short of
just disabling the option on docker. Log the fact that it's being
skipped - the only other issue is that we pointlessly set up some dirs
and the build may be a bit slower.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4208a736652190fdaad3006c435f6c068e81a093)
src/script/build-with-container.py