Skip to content
Snippets Groups Projects
Commit 1dd77cd2 authored by David Trattnig's avatar David Trattnig
Browse files

Remove obsolete sections.

parent ec3f4c6d
Branches
Tags
No related merge requests found
Pipeline #732 passed
......@@ -71,20 +71,11 @@ if [[ $docker == "true" ]]; then
### Runs Engine API using Gunicorn ###
# if [[ $mode == "engine" ]]; then
# exec sudo docker run --name aura-engine --rm -it \
# -u $UID:$GID \
# -p 127.0.0.1:8050:5000 \
# -v "$BASE_D":/srv \
# -v "$BASE_D/configuration/":/etc/aura \
# --tmpfs /var/log/aura/ autoradio/engine /srv/engine-core.py
# fi
if [[ $mode == "api" ]]; then
exec sudo docker run --name engine-api --rm -it \
-u $UID:$GID \
-p 127.0.0.1:8050:5000 \
-p 8008:8008 \
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ autoradio/engine-api /srv/engine-api.py \
......@@ -92,16 +83,6 @@ if [[ $docker == "true" ]]; then
# -c "gunicorn -c configuration/gunicorn.conf.py engine-api.py:app"
fi
### CAUTION: This deletes everything in your database ###
if [[ $mode == "recreate-database" ]]; then
exec sudo docker run --rm -it \
-u $UID:$GID \
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ autoradio/engine-api /srv/engine-api.py --recreate-database
fi
### Create Docker Image from local project ###
if [[ $mode == "build" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment