diff --git a/run.sh b/run.sh index 29fa5251cd47057925d75f0a15c44d212f2cc044..f73621e453bf6a2f60f1117778b23d065f28828f 100755 --- a/run.sh +++ b/run.sh @@ -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