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

Added Docker push.

parent fc181555
Branches
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ if [[ $docker == "true" ]]; then ...@@ -94,7 +94,7 @@ if [[ $docker == "true" ]]; then
-p 127.0.0.1:8050:5000 \ -p 127.0.0.1:8050:5000 \
-v "$BASE_D":/srv \ -v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \ -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 fi
### Runs Engine Core only ### ### Runs Engine Core only ###
...@@ -105,7 +105,7 @@ if [[ $docker == "true" ]]; then ...@@ -105,7 +105,7 @@ if [[ $docker == "true" ]]; then
-p 127.0.0.1:8050:5000 \ -p 127.0.0.1:8050:5000 \
-v "$BASE_D":/srv \ -v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \ -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 fi
### Runs Liquidsoap only ### ### Runs Liquidsoap only ###
...@@ -119,7 +119,7 @@ if [[ $docker == "true" ]]; then ...@@ -119,7 +119,7 @@ if [[ $docker == "true" ]]; then
-v "$BASE_D":/srv \ -v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \ -v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/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" -c "cd /srv/modules/liquidsoap && liquidsoap --debug --verbose engine.liq"
fi fi
...@@ -133,14 +133,19 @@ if [[ $docker == "true" ]]; then ...@@ -133,14 +133,19 @@ if [[ $docker == "true" ]]; then
-v "$BASE_D":/srv \ -v "$BASE_D":/srv \
-v "$BASE_D/configuration/":/etc/aura \ -v "$BASE_D/configuration/":/etc/aura \
--tmpfs /var/log/aura/ aura/engine /srv/engine-api.py \ --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" -c "gunicorn -c configuration/gunicorn.conf.py engine-api:app"
fi fi
### Create Docker Image from local project ### ### Create Docker Image from local project ###
if [[ $mode == "build" ]]; then if [[ $mode == "build" ]]; then
exec sudo docker build -t aura/engine . exec sudo docker build -t autoradio/engine .
fi fi
### Pushes the latest Docker Image to Docker Hub ###
if [[ $mode == "push" ]]; then
exec sudo docker push autoradio/engine
fi
fi fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment