more help info in script
This commit is contained in:
parent
36e5ff5b0f
commit
5de8856171
1 changed files with 20 additions and 4 deletions
|
@ -32,7 +32,7 @@ killall="docker kill $quassel_container $postgres_container"
|
|||
rmall="docker rm -v $quassel_container $postgres_container"
|
||||
|
||||
# info
|
||||
info="remember to prep the postgres environment if needed:
|
||||
info="remember to prep both environments if needed (e.g. after clean build):
|
||||
- docker run --entrypoint /bin/sh -u root -t -i -v $postgresdata:/var/lib/postgresql/ --rm $postgres_image -c /root/prep.sh
|
||||
- docker run --entrypoint /bin/sh -u root -t -i -v $quasselconf:/var/lib/quassel/quasselcore.conf --name $quassel_container --rm $quassel_image -c 'chown quasselcore:quassel /var/lib/quassel/quasselcore.conf'
|
||||
|
||||
|
@ -40,9 +40,25 @@ info="remember to prep the postgres environment if needed:
|
|||
- docker run --entrypoint /bin/sh -u root -h $postgres_container -t -i --name $postgres_container --rm $postgres_image -c /bin/bash
|
||||
- docker run --entrypoint /bin/sh -u root -h $quassel_container --link=$postgres_container:$postgres_container -t -i -v $quasselconf:/var/lib/quassel/quasselcore.conf --name $quassel_container --rm $quassel_image -c /bin/bash"
|
||||
|
||||
# info
|
||||
if [[ "$1" == "--info" ]]; then
|
||||
echo "$info"
|
||||
|
||||
# help
|
||||
if [[ "$1" == "--help" ]]; then
|
||||
echo "
|
||||
quasseldocker management script
|
||||
|
||||
usage:
|
||||
$0 [ --kill | --run | --build | --help ]
|
||||
|
||||
options:
|
||||
--build - build both (postgres; quassel) containers
|
||||
--help - display this message
|
||||
--kill - only kill and delete both containers
|
||||
--run - only run both containers
|
||||
|
||||
running $0 without options will kill both containers (postgres, quassel), and then create and run both of them
|
||||
|
||||
$info
|
||||
"
|
||||
fi
|
||||
|
||||
# do we want to build stuff?
|
||||
|
|
Loading…
Reference in a new issue