mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Better output on command line
This commit is contained in:
parent
3d7ebfa1dd
commit
f588cd743f
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
OPAQUE_STORAGE_MOUNT_DIRECTORY="/mnt/opaque" # Don't change this variable, unless you know what you are doing!
|
|
||||||
SWARM_MANAGER_IP=""
|
SWARM_MANAGER_IP=""
|
||||||
SWARM_WORKER_NUMBER=4
|
SWARM_WORKER_NUMBER=4
|
||||||
|
|
||||||
@ -12,18 +11,21 @@ fi
|
|||||||
echo "Leave possible swarm..."
|
echo "Leave possible swarm..."
|
||||||
docker swarm leave --force > /dev/null 2>&1
|
docker swarm leave --force > /dev/null 2>&1
|
||||||
|
|
||||||
|
echo "Start storage container"
|
||||||
docker-compose --file dind_swarm.yml up --detach storage
|
docker-compose --file dind_swarm.yml up --detach storage
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
echo "Mount network storage to host system..."
|
echo "Mount network storage to host system..."
|
||||||
sudo mkdir -p /mnt/opaque
|
sudo mkdir -p /mnt/opaque
|
||||||
sudo mount -t cifs -o gid=${USER},password=opaque,uid=${USER},user=opaque,vers=3.0 //localhost/opaque_storage /mnt/opaque
|
sudo mount -t cifs -o gid=${USER},password=opaque,uid=${USER},user=opaque,vers=3.0 //localhost/opaque_storage /mnt/opaque
|
||||||
|
|
||||||
|
echo "Start worker service(s)"
|
||||||
docker-compose --file dind_swarm.yml up --detach --scale worker=${SWARM_WORKER_NUMBER} worker viz
|
docker-compose --file dind_swarm.yml up --detach --scale worker=${SWARM_WORKER_NUMBER} worker viz
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
echo "Init Docker swarm..."
|
echo "Init Docker swarm..."
|
||||||
docker swarm init --advertise-addr ${SWARM_MANAGER_IP} > /dev/null 2>&1
|
docker swarm init --advertise-addr ${SWARM_MANAGER_IP} > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
echo "Join workers to swarm..."
|
echo "Join workers to swarm..."
|
||||||
SWARM_WORKER_TOKEN=$(docker swarm join-token -q worker)
|
SWARM_WORKER_TOKEN=$(docker swarm join-token -q worker)
|
||||||
for i in $(seq 1 ${SWARM_WORKER_NUMBER}); do
|
for i in $(seq 1 ${SWARM_WORKER_NUMBER}); do
|
||||||
|
Loading…
Reference in New Issue
Block a user