{"action":"created","issue":{"url":"https://api.github.com/repos/acockburn/appdaemon/issues/7","repository_url":"https://api.github.com/repos/acockburn/appdaemon","labels_url":"https://api.github.com/repos/acockburn/appdaemon/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/acockburn/appdaemon/issues/7/comments","events_url":"https://api.github.com/repos/acockburn/appdaemon/issues/7/events","html_url":"https://github.com/acockburn/appdaemon/pull/7","id":172323829,"number":7,"title":"Add Docker build / run instructions","user":{"login":"jnewland","id":47,"avatar_url":"https://avatars.githubusercontent.com/u/47?v=3","gravatar_id":"","url":"https://api.github.com/users/jnewland","html_url":"https://github.com/jnewland","followers_url":"https://api.github.com/users/jnewland/followers","following_url":"https://api.github.com/users/jnewland/following{/other_user}","gists_url":"https://api.github.com/users/jnewland/gists{/gist_id}","starred_url":"https://api.github.com/users/jnewland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnewland/subscriptions","organizations_url":"https://api.github.com/users/jnewland/orgs","repos_url":"https://api.github.com/users/jnewland/repos","events_url":"https://api.github.com/users/jnewland/events{/privacy}","received_events_url":"https://api.github.com/users/jnewland/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-21T14:35:14Z","updated_at":"2016-08-21T14:58:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/acockburn/appdaemon/pulls/7","html_url":"https://github.com/acockburn/appdaemon/pull/7","diff_url":"https://github.com/acockburn/appdaemon/pull/7.diff","patch_url":"https://github.com/acockburn/appdaemon/pull/7.patch"},"body":"Adds a Dockerfile and documents how to use it. \r\n\r\ntl;dr:\r\n\r\n```bash\r\n~/src/appdaemon (docker) \r\n$ docker build -t appdaemon .\r\nSending build context to Docker daemon 50.18 kB\r\nStep 1 : FROM python:3.4\r\n ---> 93bc8e41eb8c\r\nStep 2 : RUN mkdir -p /usr/src/app\r\n ---> Using cache\r\n ---> bdb71898d80e\r\nStep 3 : WORKDIR /usr/src/app\r\n ---> Using cache\r\n ---> 5817bdb6fa26\r\nStep 4 : VOLUME /conf\r\n ---> Using cache\r\n ---> f850f982963f\r\nStep 5 : RUN pip3 install --no-cache-dir   astral   configparser   daemonize   sseclient\r\n ---> Using cache\r\n ---> 5da7377daf33\r\nStep 6 : COPY . .\r\n ---> Using cache\r\n ---> d1af06f395c1\r\nStep 7 : CMD /usr/local/bin/python /usr/src/app/bin/appdaemon.py /conf/appdaemon.cfg\r\n ---> Using cache\r\n ---> c7c207563b2b\r\nSuccessfully built c7c207563b2b\r\n~/src/appdaemon (docker) \r\n$ ls /Users/jnewland/src/ha-config/appdaemon.cfg /Users/jnewland/src/ha-config/apps/*.py\r\n/Users/jnewland/src/ha-config/appdaemon.cfg\t/Users/jnewland/src/ha-config/apps/magic.py\r\n~/src/appdaemon (docker) \r\n$ docker run -d -v /Users/jnewland/src/ha-config:/conf --name appdaemon appdaemon:latest\r\n4a069bb9ad16e367617158a9ec04232e7e141541ba3d330156a163834e6b6330\r\n~/src/appdaemon (docker) \r\n$ docker logs -ft appdaemon\r\n2016-08-21T14:33:01.360162177Z 2016-08-21 14:33:01,359 INFO Got initial state\r\n2016-08-21T14:33:01.364242752Z 2016-08-21 14:33:01,363 INFO Loading Module: /conf/apps/magic.py\r\n^C\r\n~/src/appdaemon (docker) \r\n$ docker stop appdaemon\r\nappdaemon\r\n```"},"comment":{"url":"https://api.github.com/repos/acockburn/appdaemon/issues/comments/241262432","html_url":"https://github.com/acockburn/appdaemon/pull/7#issuecomment-241262432","issue_url":"https://api.github.com/repos/acockburn/appdaemon/issues/7","id":241262432,"user":{"login":"jnewland","id":47,"avatar_url":"https://avatars.githubusercontent.com/u/47?v=3","gravatar_id":"","url":"https://api.github.com/users/jnewland","html_url":"https://github.com/jnewland","followers_url":"https://api.github.com/users/jnewland/followers","following_url":"https://api.github.com/users/jnewland/following{/other_user}","gists_url":"https://api.github.com/users/jnewland/gists{/gist_id}","starred_url":"https://api.github.com/users/jnewland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnewland/subscriptions","organizations_url":"https://api.github.com/users/jnewland/orgs","repos_url":"https://api.github.com/users/jnewland/repos","events_url":"https://api.github.com/users/jnewland/events{/privacy}","received_events_url":"https://api.github.com/users/jnewland/received_events","type":"User","site_admin":true},"created_at":"2016-08-21T14:58:12Z","updated_at":"2016-08-21T14:58:12Z","body":"> Thanks for this - you seem to be relying on functionality that isn't yet in place, namely pip3 installation - I do plan on adding this but its going to make merging this a lot harder ... I already have a Docker in testing for the old install method and will probably just update that to use pip3 when I have it done.\r\n\r\nI'm not relying on it at all. The section I commented on above has it commented out. What's actually in use is this:\r\n\r\n```\r\nRUN pip3 install --no-cache-dir \\\r\n  astral \\\r\n  configparser \\\r\n  daemonize \\\r\n  sseclient\r\n```\r\n\r\nI'd be happy to remove the commented out section, or do whatever necessary to make this easier to merge. I'm also happy to just wait on your version. Just let me know what you'd prefer!"}}
{"actor":{"display_login":"jnewland"}}