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

Added Docker push.

parent fc181555
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ if [[ $docker == "true" ]]; then
-p 127.0.0.1:8050:5000 \
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ aura/engine /srv/engine-core.py
--tmpfs /var/log/aura/ autoradio/engine /srv/engine-core.py
fi
### Runs Engine Core only ###
......@@ -105,7 +105,7 @@ if [[ $docker == "true" ]]; then
-p 127.0.0.1:8050:5000 \
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ aura/engine /srv/engine-core.py "--without-lqs"
--tmpfs /var/log/aura/ autoradio/engine /srv/engine-core.py "--without-lqs"
fi
### Runs Liquidsoap only ###
......@@ -119,7 +119,7 @@ if [[ $docker == "true" ]]; then
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ \
--device /dev/snd aura/engine /bin/bash \
--device /dev/snd autoradio/engine /bin/bash \
-c "cd /srv/modules/liquidsoap && liquidsoap --debug --verbose engine.liq"
fi
......@@ -133,14 +133,19 @@ if [[ $docker == "true" ]]; then
-v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ aura/engine /srv/engine-api.py \
--device aura/engine /bin/bash \
--device autoradio/engine /bin/bash \
-c "gunicorn -c configuration/gunicorn.conf.py engine-api:app"
fi
### Create Docker Image from local project ###
if [[ $mode == "build" ]]; then
exec sudo docker build -t aura/engine .
exec sudo docker build -t autoradio/engine .
fi
### Pushes the latest Docker Image to Docker Hub ###
if [[ $mode == "push" ]]; then
exec sudo docker push autoradio/engine
fi
fi
\ No newline at end of file
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