You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
688 B
Bash
30 lines
688 B
Bash
#!/bin/bash -e
|
|
|
|
docker pull docker.io/ceph/daemon:latest-nautilus
|
|
|
|
#start client
|
|
cd client
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
cd -
|
|
|
|
#bring up mon, mds, mgr
|
|
for role_dir in /ceph/m*; do
|
|
role_name=$(basename "$role_dir")
|
|
cd "$role_name"
|
|
HOSTNAME="$HOSTNAME" docker-compose up -d
|
|
cd -
|
|
done
|
|
|
|
#manually bring up osd
|
|
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
|
|
|
|
#remove temporary docker-compose.yml
|
|
rm docker-compose.yml
|
|
done |