question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FYI: Successful Docker Installation

See original GitHub issue

I was able to successfully get this working with Docker yesterday. A few setup details:

  • Running on a Synology DS411+ii NAS
  • NAS sits on same network as Kodi HTPC
    • Does not require opening Kodi up to to internet through port forwarding
  • Let’s Encrypt certificate used
    • DDNS forwards my domain to local server
  • Port forwarding from 443 on router to Docker container

Dockerfile

FROM python:2.7-alpine
MAINTAINER Michael Carroll <me@michaelrcarroll.com>

#install necessary dependencies
RUN apk update && apk add git build-base libffi-dev openssl-dev

ENV INSTALL_PATH /kodi-alexa
RUN mkdir -p $INSTALL_PATH

WORKDIR $INSTALL_PATH

#get latest
RUN git clone https://github.com/m0ngr31/kodi-alexa.git .

#install requirements
RUN pip install -r requirements.txt

#faster fuzzy matching
RUN pip install python-Levenshtein

CMD gunicorn --certfile /config/$CERTFILE --keyfile /config/$KEYFILE -b 0.0.0.0:8000 alexa:app

Build Command

docker build -t kodi-alexa .

docker-compose.yml

version: "2"
services:

  kodi-alexa:
    container_name: kodi-alexa
    image: kodi-alexa
    ports:
      - 8443:8000
    environment:
      KODI_ADDRESS: htpc
      KODI_PORT: 8080
      KODI_USERNAME: kodi
      KODI_PASSWORD: kodi
      TZ: $TZ
      SKILL_TZ: $TZ
      CERTFILE: fullchain.pem
      KEYFILE: privkey.pem
    volumes:
      - $CONFIG/kodi-alexa:/config

Where $TZ and $CONFIG are located in a .env file:

TZ=America/Los_Angeles
CONFIG=/volume1/docker

And /volume1/docker/kodi-alexa hs the fullchain.pem & privacy.pem from letsencrypt.

Docker Compose Command

docker-compose up -d Runs in daemon mode, creates container with proper

Conclusion

I hope these details help someone as a starting point. It proves that it is possible to run this through Docker. I do not plan on creating a pull-request for this, as I just wanted to try it out. In my testing, I found it to be too slow to respond for my usage (and the girlfriend approval factor).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:44 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jingaicommented, May 21, 2017

Anyone up for actually documenting this and creating a PR?

1reaction
islipfd19commented, Dec 29, 2017

Is there any headway with this? I’ve been trying to follow along, trying different combinations but have yet to get any successful docker image up and running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Setup and Basic Use
Let us make sure that our Docker has been successfully installed by executing the ... FYI, the above command asks Docker to perform...
Read more >
Docker installation · Issue #46 · ubermag/workshop - GitHub
I have followed the steps for installation of Docker in Windows 10 home : Step 1.) Windows update to 2004 (update is available);....
Read more >
How To Install and Use Docker Compose on Ubuntu 20.04
Docker Compose is now successfully installed on your system. In the next section, you'll see how to set up a docker-compose.yml file and...
Read more >
Installing using Docker — pgwatch2 documentation
Simple setup steps¶. The simplest real-life pgwatch2 setup should look something like that: Decide which metrics storage engine you want to use ...
Read more >
Run "getting-started" Docker on Windows 10
How to run the first Docker "getting-started" on Windows 10? ✍: FYIcenter.com. A. If you have successfully completed the installation of Docker Desktop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found