reduced slack functionality, higher ease of use. Database migration wip

This commit is contained in:
2022-09-05 16:29:19 +02:00
parent 60c9e88c7b
commit 2e65828bbb
35 changed files with 789 additions and 998 deletions

44
launch Normal file
View File

@@ -0,0 +1,44 @@
#!/bin/bash
set -e
set -o ignoreeof
echo "Bash script launching COSS_ARCHIVING..."
# CHANGE ME!
export CONTAINER_DATA=~/Bulk/COSS/Downloads/coss_archiving
export UNAME=remy
if [[ $1 == "debug" ]]
then
export DEBUG=true
export HEADFULL=true
export CODE=./
export ENTRYPOINT=/bin/bash
# since service ports is not enough here, also execute up, which will
docker compose up -d
elif [[ $1 == "production" ]]
then
export DEBUG=false
elif [[ $1 == "build" ]]
then
export DEBUG=false
docker compose build
exit 0
elif [[ $1 == "down" ]]
then
docker compose stop
exit 0
else
echo "Please specify the execution mode (debug/production/build) as the first argument"
exit 1
fi
shift # consumes the variable set in $1 so that $@ only contains the remaining arguments
docker compose run -it --service-ports "$@"
echo "Docker run finished, shutting down containers..."
docker compose stop
echo "Bye!"