Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Image? #8

Open
nils opened this issue Dec 24, 2020 · 0 comments
Open

Docker Image? #8

nils opened this issue Dec 24, 2020 · 0 comments

Comments

@nils
Copy link

nils commented Dec 24, 2020

Hi Jack,

first of all: this is a brilliant application!

I really enjoy everything about it, like the simple installation, the well-designed CLI interface, and the equally well designed web interface.

However, I still have a low priority suggestion that I'd like to discuss with you.

How about provisioning of a Docker image containing an installation of led-control and an example docker-compose.yaml file ? I have built my own Dockerfile for this purpose, and that is not exactly hard to do. If one of us would provide that it could even further reduce the entry barrier because users would only need a docker-enabled distribution like HypriotOS on their RPi and not care about any additional dependencies.

Dockerfile:

FROM python:3-buster

WORKDIR /usr/src/app

RUN apt-get update && apt-get install -y scons swig git
RUN git clone --recurse-submodules https://github.com/jackw01/led-control.git && \
 cd led-control && \
 python3 setup.py develop
ENTRYPOINT ["ledcontrol"]

docker-compose.yml:

version: '3'
services:
  ledcontrol:
    build: .
    ports:
      - "80:80"
    privileged: true
    restart: always
    command: --led_count 150 --led_pixel_order GRBW # 150 LEDs of type SK6812
    volumes:
      - ./ledcontrol.json:/etc/ledcontrol.json

What do you think about this? And how should we tackle it from your perspective? Add another repository under your github user so that others can find it? Add the files to this repo? Do you have a Docker Hub account?

I can also do this under my own name, but then it would be harder to find for interested users. Maybe you could then link the Docker Hub page?

I'd prefer it if we could include the files in this repo, because then we could also automatically trigger a Docker image rebuild as soon as this repository is updated.

Best Regards,
Nils

@jackw01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant