Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions stackbox-brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ echo " ___| |_ __ _ ___| | _| |__ _____ __"
echo "/ __| __/ _ |/ __| |/ / '_ \ / _ \ \/ /"
echo "\__ \ || (_| | (__| <| |_) | (_) > <"
echo '|___/\__\__,_|\___|_|\_\_.__/ \___/_/\_\'
echo "\n"

printf "\n"
echo "######## SELECT YOUR STACK #############"

stack=()
Expand Down Expand Up @@ -113,24 +112,26 @@ python3_version=$(python3 --version)
if beginswith "Python 3" "$python_version" ;
then
var="$(pip --disable-pip-version-check install -r $installationPath/requirements.txt) > /dev/null "
python ../stack.py ${stack[*]}
python $installationPath/stack.py ${stack[*]}
elif beginswith "Python 3" "$python3_version";
then
var="$(pip3 --disable-pip-version-check install -r $installationPath/requirements.txt) > /dev/null"
python3 ../stack.py ${stack[*]}
python3 $installationPath/stack.py ${stack[*]}
else
echo "Unable to find a python 3 installation"
fi

docker-compose -f $installationPath/docker-compose.yml down 2> /dev/null > logs/docker-compose-down-log.txt
docker-compose -f $installationPath/docker-compose.yml build > logs/docker-compose-build-log.txt

printf "\n"
echo "######## DEPLOYING YOUR STACK ##############"

docker-compose -f $installationPath/docker-compose.yml up -d --remove-orphans

sleep 5

printf "\n"
echo "######## YOUR STACK ########################"

containers=$(docker ps --format '{{.Names}}')
Expand Down Expand Up @@ -162,7 +163,7 @@ do
fi
done


printf "\n"
echo "######## SETTING YOUR CODE DIRECTORY #############"

mkdir stackbox
Expand Down