forked from webdevops/Dockerfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add tests - Add documentation - Fix typos
- Loading branch information
Showing
10 changed files
with
141 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################# | ||
## Configure and run liquibase | ||
## Configure and run liquidsoap | ||
############################################# | ||
|
||
if [[ -n "$LIQUIDSOAP_TEMPLATE" ]]; then | ||
go-replace --mode=template -s Foobar -r Foobar -- "$LIQUIDSOAP_TEMPLATE" | ||
go-replace --mode=template -- "$LIQUIDSOAP_TEMPLATE" | ||
fi | ||
|
||
exec gosu "$LIQUIDSOAP_USER" liquidsoap "$LIQUIDSOAP_SCRIPT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
documentation/docs/content/DockerImages/dockerfiles/liquidsoap.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
==================== | ||
webdevops/liquidsoap | ||
==================== | ||
|
||
The liquidsoap images are based on ``webdevops/base`` with liquidsoap multimedia streaming server with most plugins. | ||
|
||
Docker image tags | ||
----------------- | ||
|
||
====================== ============================================= | ||
Tag Distribution name | ||
====================== ============================================= | ||
``latest`` Based on `webdevops/base:latest` (Ubuntu) | ||
====================== ============================================= | ||
|
||
Environment variables | ||
--------------------- | ||
|
||
.. include:: include/environment-base.rst | ||
|
||
|
||
Liquisoap environment variables | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
====================================================== ===================================== ============================================== | ||
Environment variable Description Default | ||
====================================================== ===================================== ============================================== | ||
``LIQUIDSOAP_USER`` Daemon user ID ``liquidsoap`` | ||
``LIQUIDSOAP_TELNET`` Open telnet (port 1234) ``1`` (enabled) | ||
``LIQUIDSOAP_SCRIPT`` Configuration script for liquidsoap ``/opt/docker/etc/liquidsoap/default.liq`` | ||
``LIQUIDSOAP_TEMPLATE`` Apply template to config script ``1/opt/docker/etc/liquidsoap/default.liq`` | ||
|
||
``LIQUIDSOAP_STREAM_INPUT`` Input stream (eg. icecast) ``http://icecast:8000/live`` | ||
|
||
``LIQUIDSOAP_PLAYLIST_DEFAULT`` Default stream when no other stream ``audio_to_stereo(single('/opt/docker/etc/liquidsoap/default.mp3'))`` | ||
is active | ||
|
||
``LIQUIDSOAP_PLAYLIST_DAY`` Day input stream/playlist ``playlist('/opt/docker/etc/liquidsoap/playlist-day.pls')`` | ||
``LIQUIDSOAP_PLAYLIST_DAY_TIMERANGE`` Timerange for day playlist ``4h-2h`` | ||
|
||
``LIQUIDSOAP_PLAYLIST_NIGHT`` Night input stream/playlist ``playlist('/opt/docker/etc/liquidsoap/playlist-night.pls')`` | ||
``LIQUIDSOAP_PLAYLIST_NIGHT_TIMERANGE`` Timerange for night playlist ``2h-14h`` | ||
|
||
``LIQUIDSOAP_OUTPUT`` Output stream (eg. icecast) ``output.icecast(%mp3(bitrate=128),host='localhost',port=8000,password='secretpassword',mount='liquidsoap-128',name=META_name,genre=META_genre,url=META_url,description=META_desc,ALL_input)`` | ||
|
||
``LIQUIDSOAP_OUTPUT_1`` ... ``LIQUIDSOAP_OUTPUT_20`` More output stream lines *empty* | ||
|
||
|
||
``LIQUIDSOAP_META_NAME`` Station name ``Liquidsoap Docker`` | ||
``LIQUIDSOAP_META_GENRE`` Station genre *empty* | ||
``LIQUIDSOAP_META_URL`` Station url *empty* | ||
``LIQUIDSOAP_META_DESCRIPTION`` Station description *empty* | ||
====================================================== ===================================== ============================================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
shared_examples 'collection::liquidsoap' do | ||
include_examples 'liquidsoap::listening::public' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'serverspec' | ||
require 'docker' | ||
require 'spec_init' | ||
|
||
describe "Dockerfile" do | ||
before(:all) do | ||
set :docker_image, ENV['DOCKERIMAGE_ID'] | ||
end | ||
|
||
include_examples 'collection::bootstrap' | ||
include_examples 'collection::base' | ||
include_examples 'collection::liquidsoap' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
shared_examples 'liquidsoap::listening::public' do | ||
describe port(1234) do | ||
it "hhvm should be listening", :retry => 20, :retry_wait => 3 do | ||
should be_listening.with('tcp') | ||
end | ||
end | ||
end |