I’ve just got roon running in a Docker container on my Synology 1512 NAS. It’s running well and it was really simple to do.
I’m using a ubuntu based image. I create an image based via a Dockerfile. Which looks like:
admin@DiskStation:~$ cat Dockerfile
############################################################
# Dockerfile to build Roon container images
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Ron
################## BEGIN INSTALLATION ######################
# Update the repository sources list once more
RUN apt-get update
# Install packages
RUN apt-get install -y curl
RUN apt-get install -y libav-tools
RUN apt-get install -y cifs-utils
##################### INSTALLATION END #####################
# Set default container command
CMD ["/tmp/roon.sh"]
admin@DiskStation:~$
Using this Dockerfile you can build an image:
sudo docker build -t roon .
Then I create a directory on the NAS /volume1/roon/
This directory contains roonserver-installer-linuxx64.sh and roon.sh
roon.sh is needed because the roon have combined setup and launch in the one script.
admin@DiskStation:~$ cat /volume1/roon/roon.sh
#!/bin/bash
echo "roon.sh called"
cat << 'EOF' | /tmp/roonserver-installer-linuxx64.sh
y
y
EOF
# Keep Running
tail -f /dev/null
admin@DiskStation:~$
Then I can run the docker image ( my music is in /volume1/music ) :
sudo docker run --name roon --privileged --restart=always --net=“host” -v /volume1/roon:/tmp -v /volume1/music:/music roon
And that’s it roon is running on my Synology NAS!