user="$(whoami)"
fi
- image="${user}/ceph-ci:${branch}:${sha}-${env/:/-}"
+ tag="${user}:ceph-ci-${branch}-${sha}-${env/:/-}"
T=$(mktemp -d)
pushd "$T"
apt-get update --yes && \
apt-get install --yes --allow-unauthenticated ceph ceph-osd-dbg ceph-mds-dbg ceph-mgr-dbg ceph-mon-dbg ceph-fuse-dbg ceph-test-dbg radosgw-dbg
EOF
- time run docker build $CACHE --tag "$image" .
+ time run docker build $CACHE --tag "$tag" .
else # try RHEL flavor
- time run docker build $CACHE --tag "$image" - <<EOF
+ time run docker build $CACHE --tag "$tag" - <<EOF
FROM ${env}
WORKDIR /root
popd
rm -rf -- "$T"
- printf "built image %s\n" "$image"
+ printf "built image %s\n" "$tag"
- run docker run -ti -v /ceph:/ceph:ro "$image"
+ run docker run -ti -v /ceph:/ceph:ro "$tag"
return 0
}