Skip to content
Permalink
fffaf1140e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit fffaf11 May 25, 2020 History
1 contributor

Users who have contributed to this file

executable file 29 lines (23 sloc) 754 Bytes
#! /bin/bash
if [ -z "$1" ]
then
#docker images tier/gte
echo "Pass in which gte environment to spin up:"
my_array=( $( docker images | grep 'tier/gte' | grep -v base | awk '{print $2}' | sort ) )
for i in "${my_array[@]}"
do
# strip last 7 chars (-202006)
i=${i::${#i}-7}
echo $i
done
exit 1
fi
# remove rabbitmq and all gte containers
docker rm -f rabbitmq 2> /dev/null
docker ps -a | grep 'tier/gte' | awk '{print $1}' | xargs docker rm -f
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/start-rabbitmq.sh
# lets see which
#docker stop "$1" 2> /dev/null
#docker rm "$1" 2> /dev/null
docker run -d -p 8443:443 --link rabbitmq:rabbitmq --name $1 tier/gte:"$1"-202006