Skip to content
forked from CodaFog/osmc-rpi

A OSMC Docker image for Raspberry Pi 2 or 3

Notifications You must be signed in to change notification settings

Antonpc/osmc-rpi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

osmc-rpi Dockerfile

This repository contains Dockerfile of a dockerized OSMC. It's really experimental, don't expect a real working OSMC version.

Installation

  1. Install Docker on your Raspberry pi.

  2. Create the directory used to store the kodi configuration files :

    mkdir -p /home/pi/osmc-rpi/config
  1. You can define a specific volume where Kodi can access :

    /home/pi/osmc-rpi/data

Usage

        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

Building images

  1. Install Docker on your Raspberry pi.

  2. Clone the Git :

    git clone https://github.com/CodaFog/osmc-rpi.git
  1. 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
  1. 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} .
  1. 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}"
  1. Enjoy playing with OSMC.

Github

Github : https://github.com/CodaFog/osmc-rpi

About

A OSMC Docker image for Raspberry Pi 2 or 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 82.7%
  • Dockerfile 17.3%