add bash scrip to easily run thal on linux

This commit is contained in:
Lio Young 2021-05-23 05:59:44 +02:00
parent 67bd79fcd5
commit 9ab538e037
No known key found for this signature in database
GPG Key ID: 789795A11879E169
1 changed files with 20 additions and 0 deletions

20
thaldrin Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
echo "Running Script..."
if [ "$1" == "run" ]; then
echo "Starting Thaldrin..."
docker-compose up -d
exit 0
elif [ "$1" == "build" ]; then
echo "Building Thaldrin..."
docker-compose build
exit 0
elif [ "$1" == "stop" ]; then
echo "Stopping Thaldrin..."
docker-compose down
exit 0
fi
exit 1