mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
cstart.sh: work with docker or podman
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
e94b553816
commit
7eb29b3cd5
@ -2,6 +2,12 @@
|
||||
|
||||
image_base="quay.io/ceph-ci/ceph"
|
||||
|
||||
if which podman 2>&1 > /dev/null; then
|
||||
runtime="podman"
|
||||
else
|
||||
runtime="docker"
|
||||
fi
|
||||
|
||||
# fsid
|
||||
if [ -e fsid ] ; then
|
||||
fsid=`cat fsid`
|
||||
@ -39,7 +45,7 @@ fi
|
||||
echo "port $port"
|
||||
|
||||
# make sure we have an image
|
||||
if ! podman image inspect $image_base:$shortid 2>/dev/null; then
|
||||
if ! $runtime image inspect $image_base:$shortid 2>/dev/null; then
|
||||
echo "building initial $image_base:$shortid image..."
|
||||
sudo ../src/script/cpatch -t $image_base:$shortid
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user