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
2171b8f0
Commit
2171b8f0
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
OPAM and LQS setup in Docker.
parent
5139dabe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+15
-8
15 additions, 8 deletions
Dockerfile
with
15 additions
and
8 deletions
Dockerfile
+
15
−
8
View file @
2171b8f0
FROM
python:3.7.7-buster
LABEL
maintainer="David Trattnig <david.trattnig@subsquare.at>"
RUN
set
-ex
\
...
...
@@ -10,23 +11,29 @@ RUN set -ex \
&&
apt-get update
-q
\
&&
apt-get
install
-y
-q
--no-install-recommends
\
supervisor
\
opam
\
redis-server
\
libsndfile1
\
ffmpeg
\
quelcom
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
COPY
script/install-opam-packages.sh /tmp/install-opam-packages.sh
COPY
script/install-web.sh tmp/install-web.sh
# Python Package Installation
COPY
requirements.txt /tmp/requirements.txt
RUN
opam init
--disable-sandboxing
RUN
opam switch create 4.08.0
RUN
bash tmp/install-opam-packages.sh
RUN
bash tmp/install-web.sh
RUN
pip3
install
-r
/tmp/requirements.txt
# Create Users
RUN
set
-ex
\
&&
adduser
--home
/srv
--no-create-home
--system
--uid
1000
--group
engineuser
\
&&
adduser engineuser audio
# OPAM / Liquidsoap Installation
FROM
ocaml/opam2:latest
# Liquidsoap Dependencies
RUN
opam init
--disable-sandboxing
-y
RUN
opam switch create 4.08.0
RUN
eval
$(
opam
env
)
RUN
opam
install
-y
depext
RUN
opam depext
-y
flac opus pulseaudio bjack alsa liquidsoap
RUN
opam
install
-y
flac opus pulseaudio bjack alsa liquidsoap
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