Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
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
Container Registry
Model registry
Operate
Environments
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
Commits
a9d38e79
Commit
a9d38e79
authored
3 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for docker config.
parent
bce5b55e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-3
2 additions, 3 deletions
.dockerignore
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
run.sh
+12
-6
12 additions, 6 deletions
run.sh
with
15 additions
and
9 deletions
.dockerignore
+
2
−
3
View file @
a9d38e79
...
...
@@ -78,9 +78,8 @@ python
.noseids
# Configurations
config/engine.ini
config/docker/engine.ini
config/engine.docker.ini
env.list
# Socket
src/liquidsoap/engine.sock
\ No newline at end of file
socket/engine.sock
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
0
View file @
a9d38e79
...
...
@@ -16,6 +16,7 @@ RUN mkdir -p /srv/src
RUN
mkdir
-p
/srv/config
RUN
/usr/local/bin/python
-m
pip
install
--upgrade
pip
COPY
src /srv/src
COPY
config/sample-docker.engine.ini /srv/config/engine.ini
COPY
requirements.txt /srv
COPY
contrib/postgresql-requirements.txt /srv
COPY
meta.py /srv
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
12
−
6
View file @
a9d38e79
...
...
@@ -80,11 +80,11 @@ if [[ $docker == "true" ]]; then
if
[[
$mode
==
"engine"
]]
;
then
if
[[
-z
"
${
AURA_ENGINE_CONFIG_PATH
}
"
]]
;
then
AURA_ENGINE_CONFIG_PATH
=
"
$BASE_DIR
/config/engine.docker.ini"
AURA_ENGINE_CONFIG_PATH
=
$(
readlink
-f
"
$
{
BASE_DIR
}
/config/engine.docker.ini"
)
fi
if
[[
-z
"
${
AURA_ENGINE_SOCKET_DIR
}
"
]]
;
then
AURA_ENGINE_SOCKET_DIR
=
"
$BASE_DIR
/../engine-core/socket"
AURA_ENGINE_SOCKET_DIR
=
$(
readlink
-f
"
$
{
BASE_DIR
}
/../engine-core
-quickstart
/socket"
)
fi
if
[[
-z
"
${
AURA_ENGINE_CONTROL_CHANNEL
}
"
]]
;
then
...
...
@@ -92,20 +92,26 @@ if [[ $docker == "true" ]]; then
fi
if
[[
-z
"
${
AURA_ENGINE_AUDIO_SOURCE_DIR
}
"
]]
;
then
AURA_ENGINE_AUDIO_SOURCE_DIR
=
"
$BASE_DIR
/audio/source"
AURA_ENGINE_AUDIO_SOURCE_DIR
=
$(
readlink
-f
"
$
{
BASE_DIR
}
/audio/source"
)
fi
if
[[
-z
"
${
AURA_ENGINE_AUDIO_PLAYLIST_DIR
}
"
]]
;
then
AURA_ENGINE_AUDIO_PLAYLIST_DIR
=
"
$BASE_DIR
/audio/playlist"
AURA_ENGINE_AUDIO_PLAYLIST_DIR
=
$(
readlink
-f
"
$
{
BASE_DIR
}
/audio/playlist"
)
fi
echo
AURA_ENGINE_CONFIG_PATH
=
"
$AURA_ENGINE_CONFIG_PATH
"
echo
AURA_ENGINE_SOCKET_DIR
=
"
$AURA_ENGINE_SOCKET_DIR
"
echo
AURA_ENGINE_CONTROL_CHANNEL
=
"
$AURA_ENGINE_CONTROL_CHANNEL
"
echo
AURA_ENGINE_AUDIO_SOURCE_DIR
=
"
$AURA_ENGINE_AUDIO_SOURCE_DIR
"
echo
AURA_ENGINE_AUDIO_PLAYLIST_DIR
=
"
$AURA_ENGINE_AUDIO_PLAYLIST_DIR
"
exec sudo
docker run
\
--network
=
"host"
\
--name
aura-engine
\
--rm
\
-u
$UID
:
$GID
\
-p
$AURA_ENGINE_CONTROL_CHANNEL
:1337/tcp
\
-v
"
$AURA_ENGINE_CONFIG_PATH
"
:
"/srv/config/engine.ini"
:ro
\
-p
"
$AURA_ENGINE_CONTROL_CHANNEL
"
:1337/tcp
\
-v
"
$AURA_ENGINE_CONFIG_PATH
"
:
"/srv/config/engine.ini"
\
-v
"
$AURA_ENGINE_SOCKET_DIR
"
:
"/srv/socket"
\
-v
"
$AURA_ENGINE_AUDIO_SOURCE_DIR
"
:
"/var/audio/source"
:ro
\
-v
"
$AURA_ENGINE_AUDIO_PLAYLIST_DIR
"
:
"/var/audio/playlist"
\
...
...
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