anchor.diff:  # gitlab-ci-runner
   
  -FROM ubuntu:12.04
  -MAINTAINER  Sytse Sijbrandij "sytse@gitlab.com"
  +FROM centos:6.5
  +MAINTAINER Myles Hathcock "myleshathcock@gmail.com"
   
   # This script will start a runner in a docker container.
   #
  
positive.code: RUN update-locale LANG=en_US.UTF-8
  
  # Install PostgreSQL, after install this should work: psql --host=127.0.0.1 roottestdb
  RUN apt-get install -y postgresql
  RUN cat /dev/null > /etc/postgresql/9.1/main/pg_hba.conf
  RUN echo "# TYPE DATABASE USER ADDRESS METHOD" >> /etc/postgresql/9.1/main/pg_hba.conf
  RUN echo "local  all  all  trust" >> /etc/postgresql/9.1/main/pg_hba.conf
  
negative.code: RUN touch /root/.ssh/known_hosts
  
  # Install the runner
  RUN git clone https://github.com/darthmuffins/gitlab-ci-runner-centos.git /gitlab-ci-runner-centos
  
  # Install the gems for the runner
  RUN cd /gitlab-ci-runner-centos && gem install bundler && bundle install
  
  # When the image is started add the remote server key, unstall the runner and run it
  WORKDIR /gitlab-ci-runner-centos
  CMD ssh-keyscan -H $GITLAB_SERVER_FQDN >> /root/.ssh/known_hosts && mysqld & /root/redis-stable/src/redis-server & /etc/init.d/postgresql start & bundle exec ./bin/setup_and_run
  