2018-07-07 00:37:52 +00:00
|
|
|
FROM centos:6.9
|
2015-05-12 00:13:59 +00:00
|
|
|
|
|
|
|
RUN yum install -y git \
|
|
|
|
tar \
|
|
|
|
wget \
|
|
|
|
make \
|
|
|
|
autoconf \
|
|
|
|
curl-devel \
|
|
|
|
unzip \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
glibc-static.i686 \
|
|
|
|
glibc-devel \
|
2018-03-29 00:06:47 +00:00
|
|
|
glibc-devel.i686 \
|
|
|
|
&& \
|
|
|
|
yum clean all
|
2015-05-12 00:13:59 +00:00
|
|
|
|
|
|
|
# Install Java 8
|
|
|
|
RUN wget -q --no-cookies --no-check-certificate \
|
2017-07-05 20:13:51 +00:00
|
|
|
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
|
|
|
|
"http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz" \
|
2015-05-12 00:13:59 +00:00
|
|
|
-O - | tar xz -C /var/local
|
2017-07-05 20:13:51 +00:00
|
|
|
ENV JAVA_HOME /var/local/jdk1.8.0_131
|
2015-05-12 00:13:59 +00:00
|
|
|
ENV PATH $JAVA_HOME/bin:$PATH
|
|
|
|
|
|
|
|
# Install Maven
|
2016-07-22 23:23:48 +00:00
|
|
|
RUN wget -q http://apache.cs.utah.edu/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz -O - | \
|
2015-05-12 00:13:59 +00:00
|
|
|
tar xz -C /var/local
|
2016-07-24 02:43:03 +00:00
|
|
|
ENV PATH /var/local/apache-maven-3.3.9/bin:$PATH
|
2015-05-12 00:13:59 +00:00
|
|
|
|
2018-07-06 19:38:14 +00:00
|
|
|
# Install GCC 4.8 to support -static-libstdc++
|
|
|
|
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -P /etc/yum.repos.d && \
|
|
|
|
bash -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-2.repo' && \
|
|
|
|
bash -c "sed -e 's/\$basearch/i386/g' /etc/yum.repos.d/devtools-2.repo > /etc/yum.repos.d/devtools-i386-2.repo" && \
|
|
|
|
sed -e 's/testing-/testing-i386-/g' -i /etc/yum.repos.d/devtools-i386-2.repo && \
|
2018-03-29 00:06:47 +00:00
|
|
|
rpm --rebuilddb && \
|
2018-07-06 19:38:14 +00:00
|
|
|
yum install -y devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils devtoolset-2-libstdc++-devel \
|
|
|
|
devtoolset-2-gcc.i686 devtoolset-2-gcc-c++.i686 devtoolset-2-binutils.i686 devtoolset-2-libstdc++-devel.i686 && \
|
2018-03-29 00:06:47 +00:00
|
|
|
yum clean all
|
2015-05-12 00:13:59 +00:00
|
|
|
|
2018-03-29 00:15:36 +00:00
|
|
|
COPY scl-enable-devtoolset.sh /var/local/
|
|
|
|
|
2015-05-12 00:13:59 +00:00
|
|
|
# Start in devtoolset environment that uses GCC 4.7
|
2018-03-29 00:15:36 +00:00
|
|
|
ENTRYPOINT ["/var/local/scl-enable-devtoolset.sh"]
|