Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sms
streaming-docker
Commits
91735aa2
Commit
91735aa2
authored
Mar 12, 2020
by
dreamer
Browse files
LS container from alpine (TODO: split build + runtime)
parent
f4689271
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
91735aa2
...
...
@@ -18,6 +18,3 @@ services:
restart
:
unless-stopped
volumes
:
-
/mnt/radio:/mnt/radio
entrypoint
:
-
liquidsoap
-
playlist.liq
liquidsoap.dockerfile
View file @
91735aa2
# # LS container
FROM
savonet/liquidsoap-full as liquidsoap
ARG
OPAM_VERSION=2.0.6
RUN
apt-get update
&&
apt-get
install
-y
\
gstreamer1.0-rtsp
\
gstreamer1.0-plugins-bad-videoparsers
\
gstreamer1.0-libav
\
gstreamer1.0-plugins-good
\
gstreamer1.0-plugins-ugly
\
gstreamer1.0-plugins-bad
# LS container
FROM
alpine:3.11 as liquidsoap
ARG
OPAM_VERSION
RUN
apt-get update
&&
apt-get
install
-y
\
frei0r-plugins
\
libfrei0r-ocaml
RUN
apk
--no-cache
add
\
opam
\
make
\
m4
\
ocaml-compiler-libs
\
musl-dev
\
automake
\
autoconf
\
pkgconf
\
pcre-dev
RUN
apt-get update
&&
apt-get
install
-y
\
ffmpeg
RUN
addgroup
-S
appgroup
&&
adduser
-S
appuser
-G
appgroup
USER
appuser
RUN
opam init
--disable-sandboxing
RUN
test
-r
/appuser/.opam/opam-init/init.sh
&&
.
/appuser/.opam/opam-init/init.sh
>
/dev/null 2> /dev/null
||
true
USER
root
RUN
apk
--no-cache
add
\
libvorbis-dev
\
lame-dev
\
opus-dev
USER
appuser
RUN
opam update
&&
\
opam
install
-y
\
liquidsoap
\
vorbis
\
lame
\
opus
\
cry
WORKDIR
/app
COPY
notlive.ogg /app/notlive.ogg
COPY
playlist.liq .
CMD
["liquidsoap", "playlist.liq"]
CMD
["
/home/appuser/.opam/default/bin/
liquidsoap", "playlist.liq"]
playlist.liq
View file @
91735aa2
...
...
@@ -9,7 +9,7 @@ set("harbor.password","source")
set("harbor.password","hackme")
# Put the log file in some directory where
# you have permission to write.
set("log.file.path","/mnt/radio/logs/playlist.log")
#
set("log.file.path","/mnt/radio/logs/playlist.log")
# Print log messages to the console,
# can also be done by passing the -v option to liquidsoap.
set("log.stdout", true)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment