Skip to content

Deployment and Running

Nick Shorter edited this page May 15, 2022 · 1 revision

Docker, Preferred!

The production docker container is on Docker Hub!

SetUp

  1. Install Docker
  • To install Docker on your Raspberry pi.
  • Follow instructions here
  1. Build the configuration, Go to the configuration part of the wiki
  2. Set your timezone, so the Time is correct
  • I set mine in Central, US
  • sudo timedatectl set-timezone America/Chicago
  1. Run Docker Container
  • sudo docker run -v /etc/ohmyoled:/etc/ohmyoled/ -v /etc/localtime:/etc/localtime --privileged -d thefinaljoke/ohmyoled:latest
  • Lets Break this down,
  • -v /etc/ohmyoled:/etc/ohmyoled

This is to pass your configuration to the container. Requirement: the mount point inside of the container is /etc/ohmyoled

  • -v /etc/localtime:/etc/localtime

Sets your timezone inside of your container

  • --priviledged

Allows your container to access your GPIO Pins to display to the OLED Matrix

  • -d

Detach the container from the terminal (run in the background)

Clone this wiki locally