Created
October 26, 2016 14:04
-
-
Save fearoffish/4c6c5011873835c71ab97fcc7f22c4ae to your computer and use it in GitHub Desktop.
resin.io template for getting Home-Assistant running (WIP)
This file contains hidden or 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
FROM resin/%%RESIN_MACHINE_NAME%%-python:3.4-wheezy | |
ENV INITSYSTEM=on | |
MAINTAINER [email protected] | |
WORKDIR /usr/src/app | |
RUN useradd -ms /bin/bash homeassistant | |
# Install all dependencies to speed up pushes later | |
RUN pip install 'requests>=2,<3' 'pyyaml>=3.11,<4' 'pytz>=2016.6.1' 'pip>=7.0.0' 'jinja2>=2.8' 'voluptuous==0.9.2' 'typing>=3,<4' 'PyISY==1.0.7' 'PyJWT==1.4.2' 'PyMata==2.13' 'SoCo==0.12' 'TwitterAPI==2.4.2' 'Werkzeug==0.11.11' 'apcaccess==0.0.4' 'astral==1.2' 'batinfo==0.3' 'blinkstick==1.1.8' 'blockchain==1.3.3' 'boto3==1.3.1' 'cherrypy==8.1.2' 'coinmarketcap==2.0.1' 'colorlog>2.1,<3' 'directpy==0.1' 'dnspython3==1.14.0' 'dweepy==0.2.0' 'eliqonline==1.0.12' 'enocean==0.31' 'evohomeclient==0.2.5' 'fastdotcom==0.0.1' 'feedparser==5.2.1' 'fitbit==0.2.3' 'fixerio==0.1.1' 'freesms==0.1.0' 'fuzzywuzzy==0.12.0' 'gntp==1.0.3' 'googlemaps==2.4.4' 'gps3==0.33.3' 'ha-alpr==0.3' 'ha-ffmpeg==0.13' 'hbmqtt==0.7.1' 'heatmiserV3==0.9.1' 'hikvision==0.4' | |
RUN pip install 'https://github.com/Danielhiversen/flux_led/archive/0.7.zip' 'https://github.com/LinuxChristian/pyW215/archive/v0.3.5.zip' 'https://github.com/TheRealLink/pylgtv/archive/v0.1.2.zip' 'https://github.com/TheRealLink/pythinkingcleaner/archive/v0.0.2.zip' 'https://github.com/Xorso/pyalarmdotcom/archive/0.1.1.zip' 'https://github.com/aparraga/braviarc/archive/0.3.5.zip' 'https://github.com/bah2830/python-roku/archive/3.1.2.zip' 'https://github.com/bashwork/pymodbus/archive/d7fc4f1cc975631e0a9011390e8017f64b612661.zip' 'https://github.com/danieljkemp/onkyo-eiscp/archive/python3.zip' 'https://github.com/gadgetreactor/pyHS100/archive/master.zip' 'https://github.com/jabesq/netatmo-api-python/archive/v0.5.0.zip' 'https://github.com/jamespcole/home-assistant-nzb-clients/archive/616cad59154092599278661af17e2a9f2cf5e2a9.zip' 'https://github.com/kellerza/pyqwikswitch/archive/v0.4.zip' 'https://github.com/laf/russound/archive/0.1.6.zip' 'https://github.com/mweinelt/anel-pwrctrl/archive/master.zip' 'https://github.com/nkgilley/python-ecobee-api/archive/4856a704670c53afe1882178a89c209b5f98533d.zip' 'https://github.com/nkgilley/python-join-api/archive/3e1e849f1af0b4080f551b62270c6d244d5fbcbd.zip' 'https://github.com/pvizeli/cloudapi/releases/download/1.0.2/python-1.0.2.zip' 'https://github.com/rkabadi/pyedimax/archive/365301ce3ff26129a7910c501ead09ea625f3700.zip' 'https://github.com/robbiet480/pygtfs/archive/00546724e4bbcb3053110d844ca44e2246267dd8.zip' 'https://github.com/sander76/powerviewApi/archive/master.zip' 'https://github.com/theolind/pymysensors/archive/8ce98b7fb56f7921a808eb66845ce8b2c455c81e.zip' 'https://github.com/w1ll1am23/simplisafe-python/archive/586fede0e85fd69e56e516aaa8e97eb644ca8866.zip' 'https://github.com/web-push-libs/pywebpush/archive/e743dc92558fc62178d255c0018920d74fa778ed.zip' 'https://github.com/wokar/pylgnetcast/archive/v0.2.0.zip' | |
RUN pip install 'influxdb==3.0.0' 'insteon_hub==0.4.5' 'jsonrpc-requests==0.3' 'keyring>=9.3,<10.0' 'knxip==0.3.3' 'libnacl==1.5.0' 'liffylights==0.9.4' 'lightify==1.0.3' 'limitlessled==1.0.2' 'messagebird==1.2.0' 'mficlient==0.3.0' 'miflora==0.1.9' 'netdisco==0.7.1' 'neurio==0.2.10' 'orvibo==1.1.1' 'paho-mqtt==1.2' 'panasonic_viera==0.2' 'pexpect==4.0.1' 'phue==0.8' 'pilight==0.0.2' 'plexapi==2.0.2' | |
RUN pip install 'pmsensor==0.3' 'proliphix==0.3.1' 'psutil==4.3.1' 'pubnub==3.8.2' 'pushbullet.py==0.10.0' 'pushetta==1.0.15' 'py-cpuinfo==0.2.3' 'pyRFXtrx==0.13.0' 'pyasn1-modules==0.0.8' 'pyasn1==0.1.9' 'pychromecast==0.7.4' 'pycmus==0.1.0' 'pydispatcher==2.0.5' 'pyenvisalink==1.7' 'pyfttt==0.3' 'pyhomematic==0.1.16' 'pyicloud==0.9.1' 'pylast==1.6.0' 'pyloopenergy==0.0.15' 'pynetgear==0.3.3' | |
RUN pip install 'pynetio==0.1.6' 'pynx584==0.2' 'pyowm==2.4.0' 'pyserial==3.1.1' 'pysnmp==4.3.2' 'python-digitalocean==1.9.0' 'python-forecastio==1.3.5' 'python-hpilo==3.8' 'python-mpd2==0.5.5' 'python-mystrom==0.3.6' 'python-nest==2.10.0' 'python-nmap==0.6.1' 'python-pushover==0.2' 'python-telegram-bot==5.1.0' 'python-twitch==1.3.0' 'python-wink==0.9.0' 'pyvera==0.2.20' 'pywemo==0.4.7' 'radiotherm==1.2' 'rxv==0.1.11' 'samsungctl==0.5.1' 'schiene==0.17' 'scsgate==0.1.0' | |
RUN pip install 'sendgrid==3.4.0' 'slacker==0.9.25' 'sleekxmpp==1.3.1' 'sleepyq==0.6' 'snapcast==1.2.2' 'somecomfort==0.3.2' 'speedtest-cli==0.3.4' 'sqlalchemy==1.1.1' 'static3==0.7.0' 'statsd==3.2.1' 'steamodd==4.21' 'tellcore-py==1.1.2' 'tellive-py==0.5.2' 'temperusb==1.5.1' 'transmissionrpc==0.11' 'twilio==5.4.0' 'uber_rides==0.2.5' 'unifi==1.2.5' 'urllib3' 'uvcclient==0.9.0' 'vsure==0.10.3' 'vtjp==0.1.11' 'wakeonlan==0.2.2' 'websocket-client==0.37.0' 'xbee-helper==0.0.7' 'xboxapi==0.1.1' 'xmltodict==0.10.2' 'yahoo-finance==1.2.1' 'yahooweather==0.8' 'zeroconf==0.17.6' | |
RUN pip3 install --upgrade cython | |
RUN apt-get update && apt-get install -y libudev-dev | |
RUN git clone --branch v0.3.1 https://github.com/OpenZWave/python-openzwave.git && cd python-openzwave && git checkout python3 && make build && make install | |
RUN pip install --no-cache-dir homeassistant==0.31.1 | |
COPY init.sh /usr/src/app/init.sh | |
RUN chmod +x /usr/src/app/init.sh && \ | |
chmod 750 /usr/src/app/init.sh && \ | |
chown homeassistant:homeassistant /usr/src/app/init.sh | |
EXPOSE 80 | |
EXPOSE 8300 | |
CMD ["/usr/src/app/init.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment