|
|
|
@ -4,7 +4,7 @@ docker pull docker.io/ceph/daemon:latest-octopus
|
|
|
|
|
|
|
|
|
|
#start client
|
|
|
|
|
cd client
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ shopt -s nullglob
|
|
|
|
|
for role_dir in /ceph/m*; do
|
|
|
|
|
role_name=$(basename "$role_dir")
|
|
|
|
|
cd "$role_name"
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
|
cd -
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
@ -23,11 +23,11 @@ done
|
|
|
|
|
for osd_dir in /ceph/osd_*; do
|
|
|
|
|
osd_name=$(basename "$osd_dir")
|
|
|
|
|
osd_id=$(echo "$osd_name" | cut -d'_' -f2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#create temporary docker-compose.yml
|
|
|
|
|
sed "s/%OSD_ID%/$osd_id/g" osd/docker-compose.yml > docker-compose.yml
|
|
|
|
|
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
|
|
|
HOSTNAME="$HOSTNAME" docker-compose up --detach --force-recreate
|
|
|
|
|
|
|
|
|
|
#remove temporary docker-compose.yml
|
|
|
|
|
rm docker-compose.yml
|
|
|
|
|