Mercurial > public > ssdt-docker
comparison scripts/training.sh @ 46:dfbb643b82a3
tee import logs to a file
author | smith@nwoca.org |
---|---|
date | Tue, 02 Feb 2016 21:24:28 +0000 |
parents | ef52df9248de |
children | a0283d218ff5 |
comparison
equal
deleted
inserted
replaced
45:dc40a6ed0af3 | 46:dfbb643b82a3 |
---|---|
14 echo "application.admin.password=training" > training-00/config/application.properties | 14 echo "application.admin.password=training" > training-00/config/application.properties |
15 echo "application.admin.reset=true" >> training-00/config/application.properties | 15 echo "application.admin.reset=true" >> training-00/config/application.properties |
16 fi | 16 fi |
17 | 17 |
18 for i in $(eval echo {01..${2:-10}}); do | 18 for i in $(eval echo {01..${2:-10}}); do |
19 mkdir -p $BASEDIR/training-$i | 19 mkdir -p $BASEDIR/training-$i |
20 done | 20 done |
21 | 21 |
22 for t in $( ls -d training-* ); do | 22 for t in $( ls -d training-* ); do |
23 if [ ! $t == "training-00" ]; then | 23 if [ ! $t == "training-00" ]; then |
24 | 24 |
33 | 33 |
34 ;; | 34 ;; |
35 | 35 |
36 compose) | 36 compose) |
37 | 37 |
38 for t in $( ls -d training-* ); do | 38 for t in $( ls -d *training-* ); do |
39 cd $BASEDIR/$t | 39 cd $BASEDIR/$t |
40 docker-compose ${*:2} | 40 docker-compose ${*:2} |
41 done | 41 done |
42 ;; | 42 ;; |
43 | 43 |
44 reset) | 44 reset) |
45 | 45 |
46 for t in $( ls -d training-* ); do | 46 for t in $( ls -d *training-* ); do |
47 cd $BASEDIR/$t | 47 cd $BASEDIR/$t |
48 | 48 |
49 docker-compose stop | 49 docker-compose stop |
50 docker-compose rm -f usasdb uspsdb | 50 docker-compose rm -f usasdb uspsdb |
51 docker-compose up -d usasdb uspsdb | 51 docker-compose up -d usasdb uspsdb |