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

Remove obsolete sections.

parent ec3f4c6d
No related branches found
No related tags found
No related merge requests found
Pipeline #732 passed
...@@ -71,20 +71,11 @@ if [[ $docker == "true" ]]; then ...@@ -71,20 +71,11 @@ if [[ $docker == "true" ]]; then
### Runs Engine API using Gunicorn ### ### 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 if [[ $mode == "api" ]]; then
exec sudo docker run --name engine-api --rm -it \ exec sudo docker run --name engine-api --rm -it \
-u $UID:$GID \ -u $UID:$GID \
-p 127.0.0.1:8050:5000 \ -p 127.0.0.1:8050:5000 \
-p 8008:8008 \
-v "$BASE_D":/srv \ -v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \ -v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ autoradio/engine-api /srv/engine-api.py \ --tmpfs /var/log/aura/ autoradio/engine-api /srv/engine-api.py \
...@@ -92,16 +83,6 @@ if [[ $docker == "true" ]]; then ...@@ -92,16 +83,6 @@ if [[ $docker == "true" ]]; then
# -c "gunicorn -c configuration/gunicorn.conf.py engine-api.py:app" # -c "gunicorn -c configuration/gunicorn.conf.py engine-api.py:app"
fi 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 ### ### Create Docker Image from local project ###
if [[ $mode == "build" ]]; then if [[ $mode == "build" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment