]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-debug-docker: podman build doesn't accept input via stdin
authorJeff Layton <jlayton@redhat.com>
Wed, 17 Mar 2021 17:12:09 +0000 (13:12 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 17 Mar 2021 17:55:35 +0000 (13:55 -0400)
podman on centos 8 at least doesn't accept the Dockerfile being fed to
it via stdin. Change that branch of the script to use the same method
that the ubuntu side does.

This gets the script working on senta03 for me.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/script/ceph-debug-docker.sh

index 42eaf535b9c4deed7434b879125c70be41413154..bac583b22c8af08526537446e585b0c5e70c8f2a 100755 (executable)
@@ -115,7 +115,7 @@ EOF
         if [ "${FLAVOR}" = "crimson" ]; then
             ceph_debuginfo+=" ceph-crimson-osd-debuginfo ceph-crimson-osd"
         fi
-        time run docker build $CACHE --tag "$tag" - <<EOF
+        cat > Dockerfile <<EOF
 FROM ${env}
 
 WORKDIR /root
@@ -126,6 +126,7 @@ RUN wget -O /etc/yum.repos.d/ceph-dev.repo $repo_url && \
     yum upgrade -y && \
     yum install -y ceph ${ceph_debuginfo} ceph-fuse ${python_bindings}
 EOF
+        time run docker build $CACHE --tag "$tag" .
     fi
     popd
     rm -rf -- "$T"