Skip to content

Instantly share code, notes, and snippets.

@pfigue
Created January 27, 2015 15:50
Show Gist options
  • Save pfigue/4dc89e2a36ba14d0fcff to your computer and use it in GitHub Desktop.
Save pfigue/4dc89e2a36ba14d0fcff to your computer and use it in GitHub Desktop.
Gitrob Docker Container
FROM phusion/baseimage:0.9.16
RUN apt-get update
RUN apt-get install -y ruby1.9.3 ruby-dev postgresql-9.3 postgresql-server-dev-9.3 make g++
RUN gem install bundler gitrob
RUN bash -c 'service postgresql start; sleep 5;' && sudo -u postgres psql -c "CREATE USER gitrob WITH PASSWORD 'gitrob';"
RUN bash -c 'service postgresql start; sleep 5;' && sudo -u postgres psql -c "CREATE DATABASE gitrob WITH OWNER gitrob;"
ADD gitrobrc.yml /root/.gitrobrc
EXPOSE 9393
CMD service postgresql start
---
sql_connection_uri: postgres://gitrob:gitrob@localhost:5432/gitrob
github_access_tokens:
- "<Github TOKEN 1>"
- "<Github TOKEN 2>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment