GitHub PullRequestReviewCommentEvent at 2014-05-04 00:52:18
Repository: barcoded
Actor: jamesbrink
Payload: {"comment":{"url":"https://api.github.com/repos/doomspork/barcoded/pulls/comments/12259051","id":12259051,"diff_hunk":"@@ -0,0 +1,60 @@\n+# Barcoded\n+#\n+# VERSION       1.0\n+\n+FROM ubuntu:12.04\n+MAINTAINER Sean Callan, James Brink\n+\n+# make sure the package repository is up to date\n+RUN apt-get update\n+\n+# Ruby is required to build ruby 2.1.1\n+RUN apt-get install -y wget curl ruby git\n+RUN apt-get install -y imagemagick libmagickcore-dev libmagickwand-dev\n+\n+# Ruby build requirements\n+RUN apt-get install -y build-essential bison openssl libreadline6 libreadline-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libffi-dev libffi6\n+\n+# Download,build, and install Ruby 2.1.1\n+RUN cd /var/tmp && wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz && tar xfvz ruby-2.1.1.tar.gz && cd ruby-2.1.1 && autoconf && ./configure --prefix=/usr/local/  && make && make install && cd .. &&  rm -rf ruby-2*\n+RUN apt-get remove -y ruby\n+\n+# Setup barcoded user to run the application\n+RUN groupadd barcoded\n+RUN useradd -g barcoded -G users -d /home/barcoded -m -s /bin/bash barcoded\n+RUN mkdir /app\n+RUN chown barcoded:barcoded /app\n+\n+# Allow barcoded user to install gems\n+RUN chown -R root:barcoded /usr/local/lib/ruby\n+RUN chmod -R 775 /usr/local/lib/ruby\n+RUN chown -R root:barcoded /usr/local/bin \n+RUN chmod -R 775 /usr/local/bin\n+\n+# Add project files including git repo for development purposes\n+USER barcoded\n+ADD ./.git /app/.git\n+ADD ./Gemfile /app/\n+ADD ./Gemfile.lock /app/\n+add ./.gitignore /app/","path":"Dockerfile","position":39,"original_position":39,"commit_id":"ec7cd88438757b1da7d8736c607b128734b37090","original_commit_id":"ec7cd88438757b1da7d8736c607b128734b37090","user":{"login":"jamesbrink","id":646361,"avatar_url":"https://avatars.githubusercontent.com/u/646361?","gravatar_id":"3063d239d48501633c7b34831f5386fb","url":"https://api.github.com/users/jamesbrink","html_url":"https://github.com/jamesbrink","followers_url":"https://api.github.com/users/jamesbrink/followers","following_url":"https://api.github.com/users/jamesbrink/following{/other_user}","gists_url":"https://api.github.com/users/jamesbrink/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesbrink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesbrink/subscriptions","organizations_url":"https://api.github.com/users/jamesbrink/orgs","repos_url":"https://api.github.com/users/jamesbrink/repos","events_url":"https://api.github.com/users/jamesbrink/events{/privacy}","received_events_url":"https://api.github.com/users/jamesbrink/received_events","type":"User","site_admin":false},"body":"http://docs.docker.io/reference/builder/#format\r\nUpper case is the preferred style.","created_at":"2014-05-04T00:52:18Z","updated_at":"2014-05-04T00:52:18Z","html_url":"https://github.com/doomspork/barcoded/pull/5#discussion_r12259051","pull_request_url":"https://api.github.com/repos/doomspork/barcoded/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/doomspork/barcoded/pulls/comments/12259051"},"html":{"href":"https://github.com/doomspork/barcoded/pull/5#discussion_r12259051"},"pull_request":{"href":"https://api.github.com/repos/doomspork/barcoded/pulls/5"}}}}