This repository contains Dockerfile of a dockerized OSMC. It's really experimental, don't expect a real working OSMC version.
-
Install Docker on your Raspberry pi.
-
Create the directory used to store the kodi configuration files :
mkdir -p /home/pi/osmc-rpi/config
-
You can define a specific volume where Kodi can access :
/home/pi/osmc-rpi/data
docker run -it --name osmc-rpi --device="/dev/tty1" --device="/dev/fb0" --device="/dev/input" \
--device="/dev/snd" --device="/dev/vchiq" \
-v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro \
-v /home/pi/osmc-rpi/config:/config/kodi -v /home/pi/osmc-rpi/data:/data \
--net=host codafog/osmc-rpi
-
Install Docker on your Raspberry pi.
-
Clone the Git :
git clone https://github.com/CodaFog/osmc-rpi.git
- Execute the script that download and build the OSMC base image. You can choose your version with the OSMC_VERSION variable in the script :
cd osmc-rpi
chmod +x ./create_base_image.sh
./create_base_image.sh
docker images
- Build the new image based on your version :
OSMC_VERSION=20170803
docker build -t "codafog/osmc-rpi:${OSMC_VERSION}" --build-arg OSMC_VERSION=${OSMC_VERSION} .
- Start your new OSMC container :
docker run -it --name osmc-rpi --device="/dev/tty1" --device="/dev/fb0" --device="/dev/input" \
--device="/dev/snd" --device="/dev/vchiq" \
-v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro \
-v /home/pi/osmc/config:/config/kodi -v /home/pi/osmc/data:/data \
--net=host "codafog/osmc-rpi:${OSMC_VERSION}"
- Enjoy playing with OSMC.
Github : https://github.com/CodaFog/osmc-rpi