Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Dockerfile and docker instructions

  • Loading branch information
bryanlarsen committed Apr 19, 2014
1 parent 746216c commit a7e3ebbc6f62f5475ac4399b8bbfa792e4658552
Showing with 23 additions and 0 deletions.
  1. +17 −0 Dockerfile
  2. +6 −0 README.md
@@ -0,0 +1,17 @@
# github-pr-triage
# VERSION 0.1

FROM ubuntu
MAINTAINER Bryan Larsen, bryan@larsen.st
WORKDIR /opt/github-pr-triage
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install python-pip
RUN apt-get -y install git # required for grymt

ADD . /opt/github-pr-triage
RUN pip install -r requirements.txt
RUN grymt -w ./app

EXPOSE 5000
ENTRYPOINT MEMCACHE_URL=$MEMCACHED_PORT_11211_TCP_ADDR:$MEMCACHED_PORT_11211_TCP_PORT python app.py
@@ -70,6 +70,12 @@ Send your browser to your Heroku app:

heroku open

### Docker

sudo docker run --name memcached -d borja/docker-memcached
sudo docker build -t triage .
sudo docker run --link memcached:memcached -p 5000:5000 -e GITHUB_OAUTH_TOKEN=<token> -d triage

### Cache invalidation Webhook

Once you have your site set up in production, you can set up a GitHub Webhook

0 comments on commit a7e3ebb

Please sign in to comment.
You can’t perform that action at this time.