FROM centos:centos6.7

RUN yum -y upgrade

RUN yum -y install \
    wget git findutils binutils \
    zip unzip tar gzip zlib-devel \
    clang gcc gcc-c++ \
    java java-devel java-1.8.0-openjdk-devel \
    python

RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
RUN yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils

ENV JAVA_HOME /usr/lib/jvm/java-1.8.0
ENV CC /opt/rh/devtoolset-2/root/usr/bin/gcc

FROM centos:centos6.7

RUN yum -y upgrade

RUN yum -y install \
    wget git findutils binutils \
    zip unzip tar gzip zlib-devel \
    clang gcc gcc-c++ \
    java java-devel java-1.8.0-openjdk-devel \
    python; yum clean all

RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
RUN yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils; yum clean all

ENV JAVA_HOME /usr/lib/jvm/java-1.8.0
ENV CC /opt/rh/devtoolset-2/root/usr/bin/gcc

Add yum clean all to all yum install
Add yum clean all to all yum install

The current build on ci.bazel.io fails with "Rpmdb checksum is invalid: dCDPT(pkg checksums)"
errors and our favorite search engine seems to recommend to do a yum clean all to fix it.

Change-Id: I0d574d56755bf3ce6c8ea043b698f4e1ecc3ac27
PiperOrigin-RevId: 171064618
