{"action":"created","comment":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments/26326757","id":26326757,"diff_hunk":"@@ -0,0 +1,32 @@\n+FROM ubuntu\n+\n+# Install needed packages.\n+RUN apt-get update -q\n+RUN apt-get install -qy curl libmysqlclient-dev libmagickwand-dev libmagic-dev cmake imagemagick\n+\n+# Install ruby\n+RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3\n+RUN curl -sSL https://get.rvm.io | bash -s stable\n+RUN /bin/bash -c -l 'rvm requirements'\n+RUN /bin/bash -c -l 'rvm install ruby-2.2.0'\n+RUN /bin/bash -c -l 'rvm use 2.2.0'\n+RUN /bin/bash -c -l 'gem install bundler --no-ri --no-rdoc'\n+\n+\n+# Create a directory for the app.\n+RUN mkdir -p /glittergallery\n+WORKDIR /glittergallery\n+\n+# Allow reaching via port 3000.\n+EXPOSE 3000\n+\n+# Install required gems.\n+ADD Gemfile /glittergallery/Gemfile","path":"Dockerfile","position":24,"original_position":24,"commit_id":"d861e619ff00ebc8d62435b94dbddd51631dbc88","original_commit_id":"d861e619ff00ebc8d62435b94dbddd51631dbc88","user":{"login":"rohitpaulk","id":3893573,"avatar_url":"https://avatars.githubusercontent.com/u/3893573?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitpaulk","html_url":"https://github.com/rohitpaulk","followers_url":"https://api.github.com/users/rohitpaulk/followers","following_url":"https://api.github.com/users/rohitpaulk/following{/other_user}","gists_url":"https://api.github.com/users/rohitpaulk/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitpaulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitpaulk/subscriptions","organizations_url":"https://api.github.com/users/rohitpaulk/orgs","repos_url":"https://api.github.com/users/rohitpaulk/repos","events_url":"https://api.github.com/users/rohitpaulk/events{/privacy}","received_events_url":"https://api.github.com/users/rohitpaulk/received_events","type":"User","site_admin":false},"body":"If you're copying the whole application anyway, why do you have to copy these two files individually beforehand?","created_at":"2015-03-12T17:52:35Z","updated_at":"2015-03-12T17:52:35Z","html_url":"https://github.com/glittergallery/GlitterGallery/pull/259#discussion_r26326757","pull_request_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259","_links":{"self":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments/26326757"},"html":{"href":"https://github.com/glittergallery/GlitterGallery/pull/259#discussion_r26326757"},"pull_request":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259"}}},"pull_request":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259","id":31057343,"html_url":"https://github.com/glittergallery/GlitterGallery/pull/259","diff_url":"https://github.com/glittergallery/GlitterGallery/pull/259.diff","patch_url":"https://github.com/glittergallery/GlitterGallery/pull/259.patch","issue_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/259","number":259,"state":"open","locked":false,"title":"Run GlitterGallery in a container","user":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"body":"I tried to learn about Docker and managed to run GlitterGallery in a container for development through this docker file.\r\n\r\nInstructions:\r\n-[install docker](https://docs.docker.com/installation/).\r\n-cd to GG directory\r\n-run `docker build -t container_name .`\r\n-run `docker run -p 3000:3000 container_name`\r\n-navigate to \"localhost:3000\" and enjoy :)\r\n\r\nTo make this run in production, I think we need to setup another container with mysql and connect them. Also we might want to use Passenger.\r\n\r\nI just want to make sure that I'm working on the right track for handling #239 .","created_at":"2015-03-12T17:13:56Z","updated_at":"2015-03-12T17:52:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0245e3823530ef96ac1bd9273fd865092e5d923d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259/commits","review_comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259/comments","review_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/259/comments","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/d861e619ff00ebc8d62435b94dbddd51631dbc88","head":{"label":"Alwahsh:dockerizing","ref":"dockerizing","sha":"d861e619ff00ebc8d62435b94dbddd51631dbc88","user":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"repo":{"id":31606518,"name":"GlitterGallery","full_name":"Alwahsh/GlitterGallery","owner":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alwahsh/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":true,"url":"https://api.github.com/repos/Alwahsh/GlitterGallery","forks_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/forks","keys_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/events","assignees_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/merges","archive_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/releases{/id}","created_at":"2015-03-03T15:50:04Z","updated_at":"2015-03-12T17:28:20Z","pushed_at":"2015-03-12T17:28:18Z","git_url":"git://github.com/Alwahsh/GlitterGallery.git","ssh_url":"git@github.com:Alwahsh/GlitterGallery.git","clone_url":"https://github.com/Alwahsh/GlitterGallery.git","svn_url":"https://github.com/Alwahsh/GlitterGallery","homepage":"","size":26959,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"glittergallery:master","ref":"master","sha":"2d9e5f9f98f8357da8416a74c50c78f38106615e","user":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"repo":{"id":4059120,"name":"GlitterGallery","full_name":"glittergallery/GlitterGallery","owner":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glittergallery/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":false,"url":"https://api.github.com/repos/glittergallery/GlitterGallery","forks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/forks","keys_url":"https://api.github.com/repos/glittergallery/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glittergallery/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glittergallery/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/events","assignees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/glittergallery/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/glittergallery/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/glittergallery/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glittergallery/GlitterGallery/merges","archive_url":"https://api.github.com/repos/glittergallery/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glittergallery/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/glittergallery/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/glittergallery/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glittergallery/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/glittergallery/GlitterGallery/releases{/id}","created_at":"2012-04-18T01:39:38Z","updated_at":"2015-03-12T11:28:41Z","pushed_at":"2015-03-12T11:28:41Z","git_url":"git://github.com/glittergallery/GlitterGallery.git","ssh_url":"git@github.com:glittergallery/GlitterGallery.git","clone_url":"https://github.com/glittergallery/GlitterGallery.git","svn_url":"https://github.com/glittergallery/GlitterGallery","homepage":"","size":28596,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":42,"forks":42,"open_issues":42,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259"},"html":{"href":"https://github.com/glittergallery/GlitterGallery/pull/259"},"issue":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/259"},"comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/d861e619ff00ebc8d62435b94dbddd51631dbc88"}}}}