Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
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
AURA
engine-core
Commits
afa5075f
Commit
afa5075f
authored
3 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Update default targets.
parent
a4c2851b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
config/supervisor/aura-engine-core.conf
+1
-1
1 addition, 1 deletion
config/supervisor/aura-engine-core.conf
config/systemd/aura-engine-core.service
+1
-1
1 addition, 1 deletion
config/systemd/aura-engine-core.service
run.sh
+14
-7
14 additions, 7 deletions
run.sh
with
17 additions
and
10 deletions
Dockerfile
+
1
−
1
View file @
afa5075f
...
...
@@ -26,5 +26,5 @@ USER liquidsoap
# Start the Engine
EXPOSE
1234/tcp
ENTRYPOINT
["./run.sh"]
ENTRYPOINT
["./run.sh"
, "prod"
]
CMD
["core"]
This diff is collapsed.
Click to expand it.
config/supervisor/aura-engine-core.conf
+
1
−
1
View file @
afa5075f
[
program
:
aura
-
engine
-
core
]
user
=
engineuser
directory
= /
opt
/
aura
/
engine
-
core
command
= /
opt
/
aura
/
engine
-
core
/
run
.
sh
core
command
= /
opt
/
aura
/
engine
-
core
/
run
.
sh
prod
priority
=
999
autostart
=
true
...
...
This diff is collapsed.
Click to expand it.
config/systemd/aura-engine-core.service
+
1
−
1
View file @
afa5075f
...
...
@@ -7,7 +7,7 @@ After=network.target
Type
=
simple
User
=
engineuser
WorkingDirectory
=
/opt/aura/engine-core
ExecStart
=
/opt/aura/engine-core/run.sh
core
ExecStart
=
/opt/aura/engine-core/run.sh
prod
Restart
=
always
[Install]
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
14
−
7
View file @
afa5075f
#!/bin/bash
mode
=
"
core
"
mode
=
"
dev
"
docker
=
"false"
#
...
...
@@ -7,17 +7,18 @@ docker="false"
#
# Call with one of these parameters:
#
# - core
# - dev
# - prod
# - debug
# - log
# - docker:
core
# - docker:
dev
# - docker:debug
# - docker:build
# - docker:push
#
if
[[
$*
=
~ ^
(
core
|debug|log
)
$
]]
;
then
if
[[
$*
=
~ ^
(
dev|prod
|debug|log
)
$
]]
;
then
mode
=
$1
fi
...
...
@@ -36,9 +37,15 @@ echo "[ Docker=$docker ]"
if
[[
$docker
==
"false"
]]
;
then
### Runs Engine Core (Liquidsoap) ###
### Runs Engine Core
in Development
(Liquidsoap) ###
if
[[
$mode
==
"core"
]]
;
then
if
[[
$mode
==
"dev"
]]
;
then
(
cd
src
&&
liquidsoap ./engine.liq
)
fi
### Runs Engine Core in Production (Liquidsoap) ###
if
[[
$mode
==
"prod"
]]
;
then
(
cd
src
&&
liquidsoap ./engine.liq
)
fi
...
...
@@ -66,7 +73,7 @@ if [[ $docker == "true" ]]; then
### Runs Engine Core ###
if
[[
$mode
==
"
core
"
]]
;
then
if
[[
$mode
==
"
dev
"
]]
;
then
exec sudo
docker run
\
--network
=
"host"
\
--name
aura-engine-core
\
...
...
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