Dockerfile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. FROM centos:6.9
  2. RUN yum install -y git \
  3. tar \
  4. wget \
  5. make \
  6. autoconf \
  7. curl-devel \
  8. unzip \
  9. automake \
  10. libtool \
  11. glibc-static.i686 \
  12. glibc-devel \
  13. glibc-devel.i686 \
  14. && \
  15. yum clean all
  16. # Install Java 8
  17. RUN wget -q --no-cookies --no-check-certificate \
  18. --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
  19. "http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz" \
  20. -O - | tar xz -C /var/local
  21. ENV JAVA_HOME /var/local/jdk1.8.0_131
  22. ENV PATH $JAVA_HOME/bin:$PATH
  23. # Install Maven
  24. RUN wget -q http://apache.cs.utah.edu/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz -O - | \
  25. tar xz -C /var/local
  26. ENV PATH /var/local/apache-maven-3.3.9/bin:$PATH
  27. # Install GCC 4.8 to support -static-libstdc++
  28. RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -P /etc/yum.repos.d && \
  29. bash -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-2.repo' && \
  30. bash -c "sed -e 's/\$basearch/i386/g' /etc/yum.repos.d/devtools-2.repo > /etc/yum.repos.d/devtools-i386-2.repo" && \
  31. sed -e 's/testing-/testing-i386-/g' -i /etc/yum.repos.d/devtools-i386-2.repo && \
  32. rpm --rebuilddb
  33. RUN yum install -y devtoolset-2-gcc \
  34. devtoolset-2-gcc-c++ \
  35. devtoolset-2-binutils \
  36. devtoolset-2-libstdc++-devel \
  37. devtoolset-2-libatomic-devel \
  38. libatomic \
  39. devtoolset-2-gcc.i686 \
  40. devtoolset-2-gcc-c++.i686 \
  41. devtoolset-2-binutils.i686 \
  42. devtoolset-2-libstdc++-devel.i686 \
  43. devtoolset-2-libatomic-devel.i686 \
  44. libatomic.i686 && \
  45. yum clean all
  46. COPY scl-enable-devtoolset.sh /var/local/
  47. # Start in devtoolset environment that uses GCC 4.7
  48. ENTRYPOINT ["/var/local/scl-enable-devtoolset.sh"]