-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfiles that work on Raspbian Stretch (#117)
* Add Dockerfile compatible with RPI Zero W / Raspbian Stretch - Also adds variant with pytradfri installed, for easier use as base image for applications
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ dist/ | |
.coverage | ||
.tox | ||
|
||
gateway_psk.txt | ||
gateway_psk.txt | ||
|
||
# Emacs backup files | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM resin/rpi-raspbian:stretch | ||
|
||
# https://community.home-assistant.io/t/ikea-tradfri-gateway-zigbee-very-basic-working-implementation/14788/19?u=balloob | ||
RUN apt-get update -y && \ | ||
apt-get install -y python3 python3-dev python3-pip git autoconf automake libtool make && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* build/ | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./script/install-coap-client.sh install-coap-client.sh | ||
RUN ./install-coap-client.sh | ||
|
||
# Cython version must match the version used in DTLSSocket that's in requirements.txt | ||
RUN python3 -m pip install --upgrade pip setuptools wheel | ||
RUN python3 -m pip install Cython==0.27.2 | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM resin/rpi-raspbian:stretch | ||
|
||
# https://community.home-assistant.io/t/ikea-tradfri-gateway-zigbee-very-basic-working-implementation/14788/19?u=balloob | ||
RUN apt-get update -y && \ | ||
apt-get install -y python3 python3-dev python3-pip git autoconf automake libtool make && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* build/ | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./script/install-coap-client.sh install-coap-client.sh | ||
RUN ./install-coap-client.sh | ||
|
||
# Cython version must match the version used in DTLSSocket that's in requirements.txt | ||
RUN python3 -m pip install --upgrade pip setuptools wheel | ||
RUN python3 -m pip install Cython==0.27.2 | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
COPY ./ /usr/src/app/pytradfri/ | ||
RUN cd pytradfri && python3 setup.py install | ||
|
||
CMD /bin/bash |