FYI: Successful Docker Installation
See original GitHub issueI 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:
- Created 6 years ago
- Comments:44 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Anyone up for actually documenting this and creating a PR?
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.