pwt / docker-sonos-web-arm

Docker container version of sonos-web for Raspberry Pi
Apache License 2.0
11 stars 2 forks source link

Docker Container Build of Sonos-Web for Raspberry Pi

This Dockerfile builds a docker container version of Sonos-Web [1], suitable for use on a Raspberry Pi.

It has so far been tested on the following Raspberry Pi models:

In order to build for ARM on Docker Hub, the Dockerfile makes use of the crossbuild capabilities provided by the Balena Debian distribution [2], which allows ARM images to be built under x86. (If you want to use this Dockerfile to build directly on a native ARM device, comment out or delete the two cross-build RUN statements.)

The docker image name is psychlist/docker-sonos-web-arm on Docker Hub [3].

Requirements

A working Docker environment on a suitable Raspberry Pi, and Internet access to pull the Docker image.

Usage

The container is started as follows:

docker run -d \
  --net=host \
  --restart=always \
  --name=sonos-web \
  psychlist/docker-sonos-web-arm

To update the container to the latest version, first pull the new image, then stop & restart the container:

docker pull psychlist/docker-sonos-web-arm
docker rm --force sonos-web
docker run -d \
  --net=host \
  --restart=always \
  --name=sonos-web \
  psychlist/docker-sonos-web-arm

Links

[1] https://github.com/Villarrealized/sonos-web \ [2] https://hub.docker.com/r/balenalib/raspberrypi3-debian-node \ [3] https://hub.docker.com/r/psychlist/docker-sonos-web-arm