{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab-docker/pulls/comments/57609999","id":57609999,"diff_hunk":"@@ -0,0 +1,56 @@\n+# openhab image \n+FROM multiarch/ubuntu-debootstrap:amd64-wily\n+#FROM multiarch/ubuntu-debootstrap:armhf-wily   # arch=armhf\n+#FROM multiarch/ubuntu-debootstrap:arm64-wily   # arch=arm64\n+ARG ARCH=amd64\n+\n+ARG DOWNLOAD_URL=\"https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-online/target/openhab-online-2.0.0-SNAPSHOT.zip\"\n+ENV APPDIR=\"/openhab\" OPENHAB_HTTP_PORT='8080' OPENHAB_HTTPS_PORT='8443' EXTRA_JAVA_OPTS=''\n+\n+# Install Basepackages\n+RUN \\\n+    apt-get update && \\\n+    apt-get install --no-install-recommends -y \\\n+      software-properties-common \\\n+      sudo \\\n+      unzip \\\n+      wget \\\n+    && rm -rf /var/lib/apt/lists/*\n+\n+# Install Oracle Java\n+RUN \\\n+  echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \\\n+  add-apt-repository -y ppa:webupd8team/java && \\\n+  apt-get update && \\\n+  apt-get install --no-install-recommends -y oracle-java8-installer && \\\n+  rm -rf /var/lib/apt/lists/* && \\\n+  rm -rf /var/cache/oracle-jdk8-installer\n+ENV JAVA_HOME /usr/lib/jvm/java-8-oracle\n+\n+# Add openhab user\n+RUN adduser --disabled-password --gecos '' --home ${APPDIR} openhab &&\\\n+    adduser openhab sudo &&\\\n+    adduser openhab dialout &&\\\n+    echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/openhab\n+\n+WORKDIR ${APPDIR}\n+\n+RUN \\\n+    wget -nv -O /tmp/openhab.zip ${DOWNLOAD_URL} &&\\\n+    unzip -q /tmp/openhab.zip -d ${APPDIR} &&\\\n+    rm /tmp/openhab.zip\n+\n+RUN mkdir -p ${APPDIR}/userdata/logs && touch ${APPDIR}/userdata/logs/openhab.log\n+\n+# Copy directories for host volumes\n+RUN cp -a /openhab/userdata /openhab/userdata.dist && \\\n+    cp -a /openhab/conf /openhab/conf.dist\n+COPY files/entrypoint.sh /\n+ENTRYPOINT [\"/entrypoint.sh\"]\n+\n+RUN chown -R openhab:openhab ${APPDIR}\n+USER openhab\n+# Expose volume with configuration and userdata dir\n+VOLUME ${APPDIR}/conf ${APPDIR}/userdata ${APPDIR}/addons\n+EXPOSE 8080 8443 5555","path":"Dockerfile","position":55,"original_position":55,"commit_id":"8b6e76f7b9aad46b454ec5d4c47889b81aea5b86","original_commit_id":"8b6e76f7b9aad46b454ec5d4c47889b81aea5b86","user":{"login":"cyberkov","id":312590,"avatar_url":"https://avatars.githubusercontent.com/u/312590?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberkov","html_url":"https://github.com/cyberkov","followers_url":"https://api.github.com/users/cyberkov/followers","following_url":"https://api.github.com/users/cyberkov/following{/other_user}","gists_url":"https://api.github.com/users/cyberkov/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkov/subscriptions","organizations_url":"https://api.github.com/users/cyberkov/orgs","repos_url":"https://api.github.com/users/cyberkov/repos","events_url":"https://api.github.com/users/cyberkov/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkov/received_events","type":"User","site_admin":false},"body":"I think so too. If one does not need UPnP (e.g. RFXCom Binding, Homematic etc) he can run the container with normal networking and expose ports that are not mentioned in the Dockerfile (Homematic has a callback port at 9123 iirc).","created_at":"2016-03-28T18:25:30Z","updated_at":"2016-03-28T18:25:30Z","html_url":"https://github.com/openhab/openhab-docker/pull/1#discussion_r57609999","pull_request_url":"https://api.github.com/repos/openhab/openhab-docker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/comments/57609999"},"html":{"href":"https://github.com/openhab/openhab-docker/pull/1#discussion_r57609999"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab-docker/pulls/1","id":60834027,"html_url":"https://github.com/openhab/openhab-docker/pull/1","diff_url":"https://github.com/openhab/openhab-docker/pull/1.diff","patch_url":"https://github.com/openhab/openhab-docker/pull/1.patch","issue_url":"https://api.github.com/repos/openhab/openhab-docker/issues/1","number":1,"state":"open","locked":false,"title":"New Dockerfile and update on Readme","user":{"login":"cyberkov","id":312590,"avatar_url":"https://avatars.githubusercontent.com/u/312590?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberkov","html_url":"https://github.com/cyberkov","followers_url":"https://api.github.com/users/cyberkov/followers","following_url":"https://api.github.com/users/cyberkov/following{/other_user}","gists_url":"https://api.github.com/users/cyberkov/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkov/subscriptions","organizations_url":"https://api.github.com/users/cyberkov/orgs","repos_url":"https://api.github.com/users/cyberkov/repos","events_url":"https://api.github.com/users/cyberkov/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkov/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nI started the Dockerfile based on the ubuntu image with java8 (as suggested in the forum).\r\n\r\nThe exposed volumes are /config and /userdata.\r\n\r\nPlease let me know if we can improve it anyhow.\r\n\r\nCheers\r\nHannes","created_at":"2016-02-26T12:19:24Z","updated_at":"2016-03-28T18:25:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7783a3d7b97406dea2a97e364d2314f18272fad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab-docker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab-docker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab-docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab-docker/issues/1/comments","statuses_url":"https://api.github.com/repos/openhab/openhab-docker/statuses/8b6e76f7b9aad46b454ec5d4c47889b81aea5b86","head":{"label":"cyberkov:dockerize-openhab","ref":"dockerize-openhab","sha":"8b6e76f7b9aad46b454ec5d4c47889b81aea5b86","user":{"login":"cyberkov","id":312590,"avatar_url":"https://avatars.githubusercontent.com/u/312590?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberkov","html_url":"https://github.com/cyberkov","followers_url":"https://api.github.com/users/cyberkov/followers","following_url":"https://api.github.com/users/cyberkov/following{/other_user}","gists_url":"https://api.github.com/users/cyberkov/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkov/subscriptions","organizations_url":"https://api.github.com/users/cyberkov/orgs","repos_url":"https://api.github.com/users/cyberkov/repos","events_url":"https://api.github.com/users/cyberkov/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkov/received_events","type":"User","site_admin":false},"repo":{"id":52594071,"name":"openhab-docker","full_name":"cyberkov/openhab-docker","owner":{"login":"cyberkov","id":312590,"avatar_url":"https://avatars.githubusercontent.com/u/312590?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberkov","html_url":"https://github.com/cyberkov","followers_url":"https://api.github.com/users/cyberkov/followers","following_url":"https://api.github.com/users/cyberkov/following{/other_user}","gists_url":"https://api.github.com/users/cyberkov/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkov/subscriptions","organizations_url":"https://api.github.com/users/cyberkov/orgs","repos_url":"https://api.github.com/users/cyberkov/repos","events_url":"https://api.github.com/users/cyberkov/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cyberkov/openhab-docker","description":"Repository for building docker containers for openHAB","fork":true,"url":"https://api.github.com/repos/cyberkov/openhab-docker","forks_url":"https://api.github.com/repos/cyberkov/openhab-docker/forks","keys_url":"https://api.github.com/repos/cyberkov/openhab-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyberkov/openhab-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyberkov/openhab-docker/teams","hooks_url":"https://api.github.com/repos/cyberkov/openhab-docker/hooks","issue_events_url":"https://api.github.com/repos/cyberkov/openhab-docker/issues/events{/number}","events_url":"https://api.github.com/repos/cyberkov/openhab-docker/events","assignees_url":"https://api.github.com/repos/cyberkov/openhab-docker/assignees{/user}","branches_url":"https://api.github.com/repos/cyberkov/openhab-docker/branches{/branch}","tags_url":"https://api.github.com/repos/cyberkov/openhab-docker/tags","blobs_url":"https://api.github.com/repos/cyberkov/openhab-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyberkov/openhab-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyberkov/openhab-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyberkov/openhab-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyberkov/openhab-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/cyberkov/openhab-docker/languages","stargazers_url":"https://api.github.com/repos/cyberkov/openhab-docker/stargazers","contributors_url":"https://api.github.com/repos/cyberkov/openhab-docker/contributors","subscribers_url":"https://api.github.com/repos/cyberkov/openhab-docker/subscribers","subscription_url":"https://api.github.com/repos/cyberkov/openhab-docker/subscription","commits_url":"https://api.github.com/repos/cyberkov/openhab-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyberkov/openhab-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyberkov/openhab-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyberkov/openhab-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyberkov/openhab-docker/contents/{+path}","compare_url":"https://api.github.com/repos/cyberkov/openhab-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyberkov/openhab-docker/merges","archive_url":"https://api.github.com/repos/cyberkov/openhab-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyberkov/openhab-docker/downloads","issues_url":"https://api.github.com/repos/cyberkov/openhab-docker/issues{/number}","pulls_url":"https://api.github.com/repos/cyberkov/openhab-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/cyberkov/openhab-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/cyberkov/openhab-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyberkov/openhab-docker/labels{/name}","releases_url":"https://api.github.com/repos/cyberkov/openhab-docker/releases{/id}","deployments_url":"https://api.github.com/repos/cyberkov/openhab-docker/deployments","created_at":"2016-02-26T09:36:56Z","updated_at":"2016-03-24T10:16:31Z","pushed_at":"2016-03-26T09:31:40Z","git_url":"git://github.com/cyberkov/openhab-docker.git","ssh_url":"git@github.com:cyberkov/openhab-docker.git","clone_url":"https://github.com/cyberkov/openhab-docker.git","svn_url":"https://github.com/cyberkov/openhab-docker","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dockerize-openhab"}},"base":{"label":"openhab:master","ref":"master","sha":"7302d1dfe43f69527050c50f0f1c6cd4b7ccca40","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":52591474,"name":"openhab-docker","full_name":"openhab/openhab-docker","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhab/openhab-docker","description":"Repository for building docker containers for openHAB","fork":false,"url":"https://api.github.com/repos/openhab/openhab-docker","forks_url":"https://api.github.com/repos/openhab/openhab-docker/forks","keys_url":"https://api.github.com/repos/openhab/openhab-docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab-docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab-docker/teams","hooks_url":"https://api.github.com/repos/openhab/openhab-docker/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab-docker/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab-docker/events","assignees_url":"https://api.github.com/repos/openhab/openhab-docker/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab-docker/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab-docker/tags","blobs_url":"https://api.github.com/repos/openhab/openhab-docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab-docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab-docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab-docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab-docker/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab-docker/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab-docker/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab-docker/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab-docker/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab-docker/subscription","commits_url":"https://api.github.com/repos/openhab/openhab-docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab-docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab-docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab-docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab-docker/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab-docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab-docker/merges","archive_url":"https://api.github.com/repos/openhab/openhab-docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab-docker/downloads","issues_url":"https://api.github.com/repos/openhab/openhab-docker/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab-docker/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab-docker/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab-docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab-docker/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab-docker/releases{/id}","deployments_url":"https://api.github.com/repos/openhab/openhab-docker/deployments","created_at":"2016-02-26T08:53:53Z","updated_at":"2016-03-23T09:52:27Z","pushed_at":"2016-03-26T09:31:41Z","git_url":"git://github.com/openhab/openhab-docker.git","ssh_url":"git@github.com:openhab/openhab-docker.git","clone_url":"https://github.com/openhab/openhab-docker.git","svn_url":"https://github.com/openhab/openhab-docker","homepage":null,"size":8,"stargazers_count":5,"watchers_count":5,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/1"},"html":{"href":"https://github.com/openhab/openhab-docker/pull/1"},"issue":{"href":"https://api.github.com/repos/openhab/openhab-docker/issues/1"},"comments":{"href":"https://api.github.com/repos/openhab/openhab-docker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab-docker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab-docker/statuses/8b6e76f7b9aad46b454ec5d4c47889b81aea5b86"}}}}