mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update ices-arm
This commit is contained in:
parent
48f49e139b
commit
75b00ee5b7
@ -3,9 +3,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
FROM easypi/alpine-arm
|
FROM easypi/alpine-arm
|
||||||
|
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN apk add --no-cache ices
|
RUN apk add --no-cache ices
|
||||||
|
COPY data /etc/ices
|
||||||
|
|
||||||
CMD ["ices", "/etc/ices.xml"]
|
CMD ["ices", "/etc/ices/ices.xml"]
|
||||||
|
@ -22,7 +22,7 @@ docker-compose.yml
|
|||||||
ices:
|
ices:
|
||||||
image: easypi/ices-arm
|
image: easypi/ices-arm
|
||||||
volumes:
|
volumes:
|
||||||
- ./ices.xml:/etc/ices.xml
|
- ./data:/etc/ices
|
||||||
devices:
|
devices:
|
||||||
- /dev/snd
|
- /dev/snd
|
||||||
links:
|
links:
|
||||||
@ -58,6 +58,8 @@ ices.xml
|
|||||||
<param name="rate">44100</param>
|
<param name="rate">44100</param>
|
||||||
<param name="channels">1</param>
|
<param name="channels">1</param>
|
||||||
<param name="device">hw:1,0</param>
|
<param name="device">hw:1,0</param>
|
||||||
|
<param name="metadata">1</param>
|
||||||
|
<param name="metadatafilename">/etc/ices/ices.txt</param>
|
||||||
</input>
|
</input>
|
||||||
<instance>
|
<instance>
|
||||||
<hostname>icecast</hostname>
|
<hostname>icecast</hostname>
|
||||||
@ -76,7 +78,16 @@ ices.xml
|
|||||||
|
|
||||||
> You can setup multiple `instances` (e.g. LAN & WAN).
|
> You can setup multiple `instances` (e.g. LAN & WAN).
|
||||||
|
|
||||||
## Debug
|
ices.txt
|
||||||
|
--------
|
||||||
|
|
||||||
|
```ini
|
||||||
|
artist=Various Artists
|
||||||
|
title=Untitled Song
|
||||||
|
```
|
||||||
|
|
||||||
|
Running
|
||||||
|
-------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ arecord -l
|
$ arecord -l
|
||||||
@ -84,8 +95,11 @@ $ arecord -l
|
|||||||
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
|
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
|
||||||
Subdevices: 0/1
|
Subdevices: 0/1
|
||||||
Subdevice #0: subdevice #0
|
Subdevice #0: subdevice #0
|
||||||
|
|
||||||
$ alsamixer -c 1
|
$ alsamixer -c 1
|
||||||
|
$ docker-compose up -d
|
||||||
|
$ streamripper http://localhost:8000/live.ogg
|
||||||
|
$ vi data/ices.txt
|
||||||
|
$ docker-compose kill -s SIGUSR1
|
||||||
```
|
```
|
||||||
|
|
||||||
[1]: http://icecast.org/ices/
|
[1]: http://icecast.org/ices/
|
||||||
|
2
ices-arm/data/ices.txt
Normal file
2
ices-arm/data/ices.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
artist=Various Artists
|
||||||
|
title=Untitled Song
|
@ -16,6 +16,8 @@
|
|||||||
<param name="rate">44100</param>
|
<param name="rate">44100</param>
|
||||||
<param name="channels">1</param>
|
<param name="channels">1</param>
|
||||||
<param name="device">hw:1,0</param>
|
<param name="device">hw:1,0</param>
|
||||||
|
<param name="metadata">1</param>
|
||||||
|
<param name="metadatafilename">/etc/ices/ices.txt</param>
|
||||||
</input>
|
</input>
|
||||||
<instance>
|
<instance>
|
||||||
<hostname>icecast</hostname>
|
<hostname>icecast</hostname>
|
@ -1,7 +1,7 @@
|
|||||||
ices:
|
ices:
|
||||||
image: easypi/ices-arm
|
image: easypi/ices-arm
|
||||||
volumes:
|
volumes:
|
||||||
- ./ices.xml:/etc/ices.xml
|
- ./data:/etc/ices
|
||||||
devices:
|
devices:
|
||||||
- /dev/snd
|
- /dev/snd
|
||||||
links:
|
links:
|
||||||
|
Loading…
Reference in New Issue
Block a user