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
5b66e43c
Commit
5b66e43c
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Use Liquidsoap base image, Install Python 3.8.
#17
parent
3e182ebd
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
Dockerfile
+10
-46
10 additions, 46 deletions
Dockerfile
with
10 additions
and
46 deletions
Dockerfile
+
10
−
46
View file @
5b66e43c
FROM
ocaml/opam2:debian-10
FROM
savonet/liquidsoap:v1.4.3
LABEL
maintainer="David Trattnig <david.trattnig@subsquare.at>"
LABEL
maintainer="David Trattnig <david.trattnig@subsquare.at>"
# Engine System Dependencies
# Engine System Dependencies
RUN
sudo
apt-get update
&&
sudo
apt-get
-y
install
\
RUN
apt-get update
&&
apt-get
-y
install
\
apt-utils
\
apt-utils
\
redis-server
\
redis-server
\
ffmpeg
\
ffmpeg
\
quelcom
\
quelcom
\
python3
\
python3-pip
\
build-essential \
build-essential \
libmariadbclient-dev \
libmariadbclient-dev \
default-libmysqlclient-dev
default-libmysqlclient-dev \
python3.8 python3-pip
# Liquidsoap System Dependencies
RUN
sudo
apt-get
install
-qq
-yy
\
libasound2-dev
\
libflac-dev
\
libjack-dev
\
libmad0-dev
\
libmp3lame-dev
\
libogg-dev
\
libopus-dev
\
libpcre3-dev
\
libpulse-dev
\
libsamplerate0-dev
\
libssl-dev
\
libtag1-dev
\
libvorbis-dev
\
m4
\
pkg-config
# Update OPAM
RUN
opam init
--disable-sandboxing
-y
RUN
opam switch create 4.08.0
RUN
opam update
-y
RUN
opam
install
depext
-y
# Liquidsoap Dependencies
RUN
opam depext taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap
-y
RUN
opam
install
taglib mad lame vorbis flac opus cry samplerate pulseaudio bjack alsa ssl liquidsoap
-y
# Print Debug Information
# Print Debug Information
RUN
echo
$(
python3
-V
)
RUN
echo
$(
python3.8
-V
)
RUN
echo
$(
python3.7
-V
)
RUN
echo
$(
ls
/home/opam/.opam/4.08.0/bin/liquidsoap
)
# Setup Engine
# Setup Engine
RUN
whoami
RUN
mkdir
-p
/srv
RUN
mkdir
-p
/srv
RUN
mkdir
-p
/
home/opam
/audio
RUN
mkdir
-p
/
var
/audio
RUN
mkdir
-p
/
home/opam
/audio/source
RUN
mkdir
-p
/
var
/audio/source
COPY
. /srv
COPY
. /srv
WORKDIR
/srv
WORKDIR
/srv
ENV
PATH="/home/opam/.local/bin:${PATH}"
RUN
python3.8
$(
which pip3
)
install
-r
requirements.txt
RUN
sudo
usermod
-a
-G
audio opam
RUN
python3.7
$(
which pip3
)
install
-r
requirements.txt
COPY
configuration/sample-docker.engine.ini /srv/configuration/engine.ini
# Start the Engine
# Start the Engine
...
...
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