{"action":"created","comment":{"url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/comments/34975003","id":34975003,"diff_hunk":"@@ -0,0 +1,34 @@\n+FROM opensuse:13.2\n+MAINTAINER Duncan Mac-Vicar P. \"dmacvicar@suse.de\"\n+\n+RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \\\n+    libxml2-devel libxslt-devel \\\n+    sqlite3-devel gcc make ruby-devel rubygem-bundler \\\n+    ca-certificates ca-certificates-mozilla git-core\n+\n+# Database location\n+ENV DATABASE_URL sqlite:///data/db/nailed.db\n+\n+RUN useradd -m nailed\n+RUN mkdir -p /data/db && mkdir -p /data/log && mkdir -p /data/config\n+RUN chown nailed:users /data/ -R\n+VOLUME [\"/data\"]\n+# add the git tree with the app\n+ADD . /home/nailed/app\n+RUN chown nailed:users /home/nailed/app/ -R\n+USER nailed\n+WORKDIR /home/nailed/app\n+# add the dependencies\n+RUN bundle config build.nokogiri \"--use-system-libraries\"\n+RUN bundle install --path /home/nailed/app/vendor/bundle\n+# redirect the config to the volume\n+RUN rm -rf config && ln -s /data/config config\n+RUN rm -rf log && ln -s /data/log log\n+\n+# Github and Bugzilla configuration\n+ENV OCTOKIT_NETRC /data/config/netrc\n+ENV HOME /data/config\n+\n+EXPOSE 4567\n+CMD [\"--help\"]\n+ENTRYPOINT [\"bundle\", \"exec\", \"bin/nailed\"]","path":"Dockerfile","position":34,"original_position":34,"commit_id":"642f9c0a28e844162ab662d5109fde7a363cf67d","original_commit_id":"642f9c0a28e844162ab662d5109fde7a363cf67d","user":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars.githubusercontent.com/u/15332?v=3","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"body":"you can open a shell by running the container with --server and then using docker exec to run the shell passing the id of the running container.","created_at":"2015-07-20T08:20:18Z","updated_at":"2015-07-20T08:20:18Z","html_url":"https://github.com/MaximilianMeister/nailed/pull/26#discussion_r34975003","pull_request_url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/comments/34975003"},"html":{"href":"https://github.com/MaximilianMeister/nailed/pull/26#discussion_r34975003"},"pull_request":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26","id":40307583,"html_url":"https://github.com/MaximilianMeister/nailed/pull/26","diff_url":"https://github.com/MaximilianMeister/nailed/pull/26.diff","patch_url":"https://github.com/MaximilianMeister/nailed/pull/26.patch","issue_url":"https://api.github.com/repos/MaximilianMeister/nailed/issues/26","number":26,"state":"open","locked":false,"title":"Add Docker image and instructions on how to run as a container","user":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars.githubusercontent.com/u/15332?v=3","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"body":"The following Dockerfile and instructions allow to run nailed as a Docker container. The included image is based on openSUSE 13.2 and setups everything the README specifies.\r\n\r\nThe data, log and config is kept in a data volume that can be injected when running it.","created_at":"2015-07-19T12:39:48Z","updated_at":"2015-07-20T08:20:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cde9b334fad87eb0bdbf0297840de5475ddada4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26/commits","review_comments_url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26/comments","review_comment_url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaximilianMeister/nailed/issues/26/comments","statuses_url":"https://api.github.com/repos/MaximilianMeister/nailed/statuses/642f9c0a28e844162ab662d5109fde7a363cf67d","head":{"label":"dmacvicar:docker","ref":"docker","sha":"642f9c0a28e844162ab662d5109fde7a363cf67d","user":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars.githubusercontent.com/u/15332?v=3","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"repo":{"id":39219330,"name":"nailed","full_name":"dmacvicar/nailed","owner":{"login":"dmacvicar","id":15332,"avatar_url":"https://avatars.githubusercontent.com/u/15332?v=3","gravatar_id":"","url":"https://api.github.com/users/dmacvicar","html_url":"https://github.com/dmacvicar","followers_url":"https://api.github.com/users/dmacvicar/followers","following_url":"https://api.github.com/users/dmacvicar/following{/other_user}","gists_url":"https://api.github.com/users/dmacvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmacvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmacvicar/subscriptions","organizations_url":"https://api.github.com/users/dmacvicar/orgs","repos_url":"https://api.github.com/users/dmacvicar/repos","events_url":"https://api.github.com/users/dmacvicar/events{/privacy}","received_events_url":"https://api.github.com/users/dmacvicar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmacvicar/nailed","description":"Collect and visualize product related data from Bugzilla, Github and Jenkins","fork":true,"url":"https://api.github.com/repos/dmacvicar/nailed","forks_url":"https://api.github.com/repos/dmacvicar/nailed/forks","keys_url":"https://api.github.com/repos/dmacvicar/nailed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmacvicar/nailed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmacvicar/nailed/teams","hooks_url":"https://api.github.com/repos/dmacvicar/nailed/hooks","issue_events_url":"https://api.github.com/repos/dmacvicar/nailed/issues/events{/number}","events_url":"https://api.github.com/repos/dmacvicar/nailed/events","assignees_url":"https://api.github.com/repos/dmacvicar/nailed/assignees{/user}","branches_url":"https://api.github.com/repos/dmacvicar/nailed/branches{/branch}","tags_url":"https://api.github.com/repos/dmacvicar/nailed/tags","blobs_url":"https://api.github.com/repos/dmacvicar/nailed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmacvicar/nailed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmacvicar/nailed/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmacvicar/nailed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmacvicar/nailed/statuses/{sha}","languages_url":"https://api.github.com/repos/dmacvicar/nailed/languages","stargazers_url":"https://api.github.com/repos/dmacvicar/nailed/stargazers","contributors_url":"https://api.github.com/repos/dmacvicar/nailed/contributors","subscribers_url":"https://api.github.com/repos/dmacvicar/nailed/subscribers","subscription_url":"https://api.github.com/repos/dmacvicar/nailed/subscription","commits_url":"https://api.github.com/repos/dmacvicar/nailed/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmacvicar/nailed/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmacvicar/nailed/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmacvicar/nailed/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmacvicar/nailed/contents/{+path}","compare_url":"https://api.github.com/repos/dmacvicar/nailed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmacvicar/nailed/merges","archive_url":"https://api.github.com/repos/dmacvicar/nailed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmacvicar/nailed/downloads","issues_url":"https://api.github.com/repos/dmacvicar/nailed/issues{/number}","pulls_url":"https://api.github.com/repos/dmacvicar/nailed/pulls{/number}","milestones_url":"https://api.github.com/repos/dmacvicar/nailed/milestones{/number}","notifications_url":"https://api.github.com/repos/dmacvicar/nailed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmacvicar/nailed/labels{/name}","releases_url":"https://api.github.com/repos/dmacvicar/nailed/releases{/id}","created_at":"2015-07-16T20:38:19Z","updated_at":"2015-07-16T20:38:19Z","pushed_at":"2015-07-19T12:40:33Z","git_url":"git://github.com/dmacvicar/nailed.git","ssh_url":"git@github.com:dmacvicar/nailed.git","clone_url":"https://github.com/dmacvicar/nailed.git","svn_url":"https://github.com/dmacvicar/nailed","homepage":"","size":1378,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"master"}},"base":{"label":"MaximilianMeister:master","ref":"master","sha":"fed224f77bc40d38d7bf51f178afeadf6c91891d","user":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"repo":{"id":28493988,"name":"nailed","full_name":"MaximilianMeister/nailed","owner":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximilianMeister/nailed","description":"Collect and visualize product related data from Bugzilla, Github and Jenkins","fork":false,"url":"https://api.github.com/repos/MaximilianMeister/nailed","forks_url":"https://api.github.com/repos/MaximilianMeister/nailed/forks","keys_url":"https://api.github.com/repos/MaximilianMeister/nailed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximilianMeister/nailed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximilianMeister/nailed/teams","hooks_url":"https://api.github.com/repos/MaximilianMeister/nailed/hooks","issue_events_url":"https://api.github.com/repos/MaximilianMeister/nailed/issues/events{/number}","events_url":"https://api.github.com/repos/MaximilianMeister/nailed/events","assignees_url":"https://api.github.com/repos/MaximilianMeister/nailed/assignees{/user}","branches_url":"https://api.github.com/repos/MaximilianMeister/nailed/branches{/branch}","tags_url":"https://api.github.com/repos/MaximilianMeister/nailed/tags","blobs_url":"https://api.github.com/repos/MaximilianMeister/nailed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximilianMeister/nailed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximilianMeister/nailed/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximilianMeister/nailed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximilianMeister/nailed/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximilianMeister/nailed/languages","stargazers_url":"https://api.github.com/repos/MaximilianMeister/nailed/stargazers","contributors_url":"https://api.github.com/repos/MaximilianMeister/nailed/contributors","subscribers_url":"https://api.github.com/repos/MaximilianMeister/nailed/subscribers","subscription_url":"https://api.github.com/repos/MaximilianMeister/nailed/subscription","commits_url":"https://api.github.com/repos/MaximilianMeister/nailed/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximilianMeister/nailed/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximilianMeister/nailed/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximilianMeister/nailed/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximilianMeister/nailed/contents/{+path}","compare_url":"https://api.github.com/repos/MaximilianMeister/nailed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximilianMeister/nailed/merges","archive_url":"https://api.github.com/repos/MaximilianMeister/nailed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximilianMeister/nailed/downloads","issues_url":"https://api.github.com/repos/MaximilianMeister/nailed/issues{/number}","pulls_url":"https://api.github.com/repos/MaximilianMeister/nailed/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximilianMeister/nailed/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximilianMeister/nailed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximilianMeister/nailed/labels{/name}","releases_url":"https://api.github.com/repos/MaximilianMeister/nailed/releases{/id}","created_at":"2014-12-25T23:50:21Z","updated_at":"2015-07-17T14:40:15Z","pushed_at":"2015-07-19T12:40:34Z","git_url":"git://github.com/MaximilianMeister/nailed.git","ssh_url":"git@github.com:MaximilianMeister/nailed.git","clone_url":"https://github.com/MaximilianMeister/nailed.git","svn_url":"https://github.com/MaximilianMeister/nailed","homepage":"","size":1395,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26"},"html":{"href":"https://github.com/MaximilianMeister/nailed/pull/26"},"issue":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/issues/26"},"comments":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/MaximilianMeister/nailed/statuses/642f9c0a28e844162ab662d5109fde7a363cf67d"}}}}