Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Kruse
aura-engine
Commits
063d53f1
Commit
063d53f1
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Added Docker push.
parent
fc181555
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run.sh
+10
-5
10 additions, 5 deletions
run.sh
with
10 additions
and
5 deletions
run.sh
+
10
−
5
View file @
063d53f1
...
...
@@ -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/ au
ra
/engine /srv/engine-core.py
--tmpfs
/var/log/aura/ au
toradio
/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/ au
ra
/engine /srv/engine-core.py
"--without-lqs"
--tmpfs
/var/log/aura/ au
toradio
/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 au
ra
/engine /bin/bash
\
--device
/dev/snd au
toradio
/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
au
ra
/engine /bin/bash
\
--device
au
toradio
/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
au
ra
/engine
.
exec sudo
docker build
-t
au
toradio
/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment