anchor.diff:         OPENSSLDIR=/opt/openssl \
          CURLDIR=/opt/curl \
          CPPFLAGS="-I/opt/curl/include" \
  -       LDFLAGS="-L/opt/curl/lib" && make all && make install
  +       LDFLAGS="-L/opt/curl/lib" && make all && make install && \
  +    cd - && rm -rf /tmp/git-2.7.0 && rm -f /tmp/git-2.7.0.tar.gz
   
  -RUN mkdir -p /etc/ld.so.conf.d/
  -RUN echo "/opt/curl/lib" > /etc/ld.so.conf.d/optcurl.conf
  -RUN ldconfig
  +RUN mkdir -p /etc/ld.so.conf.d/ && echo "/opt/curl/lib" > /etc/ld.so.conf.d/optcurl.conf && ldconfig
   
  -#RUN linux32 /bin/bash -l -c "CPPFLAGS='-I/usr/local/rvm/gems/ruby-2.2.2/include' rvm --static install 2.2.2 --static --with-static-linked-ext --with-openssl-dir=/opt/openssl"
  -RUN linux32 /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 linux32 /bin/bash -l -c " rvm --default use 2.2.2"
  -RUN /bin/bash -l -c " gem install bundler --no-ri --no-rdoc"
  +RUN linux32 /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" && \
  +    linux32 /bin/bash -l -c " rvm --default use 2.2.2" && \
  +    linux32 /bin/bash -l -c " gem install bundler --no-ri --no-rdoc" && \
  +    rm -rf /usr/local/rvm/src/ruby-2.2.2
   
  -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
  +RUN git config --global user.email "package@datadoghq.com" && \
  +    git config --global user.name "Centos Omnibus Package" && \
  +    git clone https://github.com/DataDog/dd-agent-omnibus.git
   
   # TODO: remove the checkout line after the merge to master
   RUN cd dd-agent-omnibus && \
  
positive.code:     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 && ./configure LIBS="-ldl" --host=i686-pc-linux-gnu --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
  
negative.code: # Set up an RVM with Ruby 2.2.2
  RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  RUN linux32 yum -y install tar
  RUN curl -sSL https://get.rvm.io |  linux32 bash -s stable && \
      linux32 /bin/bash -l -c "rvm requirements" && \
      linux32 /bin/bash -l -c " rvm install 2.1.5" && \
      rm -rf /usr/local/rvm/src/ruby-2.1.5
  
  # Install go (required by to build gohai)
  RUN curl -o /tmp/go1.3.3.linux-386.tar.gz https://storage.googleapis.com/golang/go1.3.3.linux-386.tar.gz && \
  