anchor.diff:  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 curl -o /tmp/openssl-1.0.1r.tar.gz http://artfiles.org/openssl.org/source/openssl-1.0.1r.tar.gz
  +RUN cd /tmp && tar -xzf /tmp/openssl-1.0.1r.tar.gz
  +RUN cd /tmp/openssl-1.0.1r && ./Configure linux-x86_64 no-shared --openssldir=/opt/openssl -fPIC && make && make install
  +
  +# now build git
  +# dependencies
  +RUN yum -y install \
  +    expat-devel \
  +    gettext-devel \
  +    perl-devel \
  +    zlib-devel
  +
  +RUN curl -o /tmp/curl-7.46.0.tar.gz http://curl.askapache.com/download/curl-7.46.0.tar.gz
  +RUN cd /tmp && tar -xzf /tmp/curl-7.46.0.tar.gz
  +RUN cd /tmp/curl-7.46.0 && LIBS="-ldl" ./configure --enable-static --prefix=/opt/curl --with-ssl=/opt/openssl && make all && make install
  +
  +RUN curl -o /tmp/git-2.7.0.tar.gz https://www.kernel.org/pub/software/scm/git/git-2.7.0.tar.gz
  +RUN cd /tmp && tar -xzf /tmp/git-2.7.0.tar.gz
  +RUN cd /tmp/git-2.7.0 && make configure && ./configure --with-ssl --prefix=/usr \
  +       OPENSSLDIR=/opt/openssl \
  +       CURLDIR=/opt/curl \
  +       CPPFLAGS="-I/opt/curl/include" \
  +       LDFLAGS="-L/opt/curl/lib" && make all && make install
  +
  +RUN mkdir -p /etc/ld.so.conf.d/
  +RUN echo "/opt/curl/lib" > /etc/ld.so.conf.d/optcurl.conf
  +RUN ldconfig
  +
  +RUN /bin/bash -l -c "CPPFLAGS='-I/usr/local/rvm/gems/ruby-2.2.2/include' rvm install 2.2.2 --with-openssl-dir=/opt/openssl"
  +RUN /bin/bash -l -c "rvm --default use 2.2.2"
  +RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
  +
   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
  
positive.code: 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"
  
  # 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
  
  RUN yum -y install \
      git \
      install \
      perl-ExtUtils-MakeMaker \
      fakeroot
  
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
  