upgrade features for groups.

This commit is contained in:
mathematicalmichael 2019-02-18 13:43:44 -07:00
parent 4a7a37693e
commit b28c4bd989
2 changed files with 9 additions and 1 deletions

8
groups.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
source .env
NUM_GROUPS=4
for i in `seq 1 $NUM_GROUPS`; do
docker volume create shared-$HUB_NAME-group$i
sudo chmod 777 $(docker inspect shared-$HUB_NAME-group$i | grep "Mountpoint" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g')
done

View File

@ -20,7 +20,7 @@ docker-compose up -d
echo -en "\n\nWe create a default shared volume and set its permissions to be read/write. You may have to enter your password now:\n"
docker volume create shared-shared
sudo chmod 777 $(docker inspect shared-shared | grep "Mountpoint" | awk '{print $2}' | sed 's/"//g' | sed 's/,//g')
echo -en "Volume has been created."
echo -en "Globally shared volume has been created."
echo -en "\n\nHub has been launched. Here are the Docker processes running right now:"
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"