Skip to content

Latest commit

 

History

History

Docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Running yellowShoes in Docker

If you're looking to run yellowShoes inside a docker container, let's start with a couple of assumptions:

  • You're running 64bit Linux, so we will run yellowShoes-linux-amd64 inside the docker container.
  • You are dockeruser who is a member of the docker group
  • You have rtl_tcp running in your network, and won't be talking to the SDR Dongle on your usb bus. (See more about rtl_tcp)
  • You want -enableAlbumArt enabled for album art rendering.

Here's a Dockerfile that we can use.

Building the Docker Image

You can build the above Dockerfile as:

docker build -f Dockerfile -t yellowshoes .

Running the Docker Image:

Once built, you can instantiate your yellowShoes docker image:

docker run  --log-driver none -v /tmp:/tmp -p 8113:8113 --rm yellowshoes

Orchestration

There are multitude of methods to achieve this. I added a line to my /etc/crontab to manage the orchestration:

*/4 * * * *       dockeruser    /SomeFolder/Docker-images/yellowShoes/yellowShoes.sh 1>/dev/null 2>/dev/null

Contents of yellowShoes.sh:

#!/bin/bash 

img="yellowshoes"
docker ps |grep -qi "$img" || {
	docker run -d --log-driver none -v /tmp:/tmp -p 8113:8113 --rm "$img" 1>/dev/null 2>/dev/null 
}