anchor.diff:  RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
   RUN \curl -sSL https://get.rvm.io | bash -s stable
   RUN /bin/bash -l -c "rvm requirements"
  -RUN /bin/bash -l -c "rvm install 2.2.2"
  -
  -RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
  +RUN /bin/bash -l -c "rvm install 2.1.5"
   
   # Install go (required by to build gohai)
   RUN curl -o /tmp/go1.3.3.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz && \
       tar -C /usr/local -xzf /tmp/go1.3.3.linux-amd64.tar.gz && \
       echo "PATH=$PATH:/usr/local/go/bin" | tee /etc/profile.d/go.sh
   
  +# Upgrade openssl
  +RUN curl -L -o /tmp/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm && \
  +    rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt && \
  +    yum -y localinstall /tmp/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
  +
  +RUN sed -i '/rpmforge-extras/,/^enabled\|^\[/s/^enabled.*/enabled = 1/' /etc/yum.repos.d/rpmforge.repo
  +
   RUN yum -y install \
  -    git \
       install \
       perl-ExtUtils-MakeMaker \
       fakeroot
  
positive.code: RUN rm -f /bin/tar /bin/gtar
  RUN cd /tmp/tar-1.23 && FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/ && make && make install && ln -sf /bin/tar /bin/gtar
  
  RUN git config --global user.email "package@datadoghq.com"
  RUN git config --global user.name "Centos Omnibus Package"
  RUN git clone https://github.com/DataDog/dd-agent-omnibus.git
  
negative.code: RUN cd dd-agent-omnibus && \
      /bin/bash -l -c "bundle install --binstubs"
  
  # bootstap our CERTS
  RUN /opt/curl/bin/curl -kfsSL curl.haxx.se/ca/cacert.pem \
                         -o $(/bin/bash -l -c "ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'")
  
  VOLUME ["/dd-agent-omnibus/pkg"]
  
  ENTRYPOINT /bin/bash -l /dd-agent-omnibus/omnibus_build.sh
  