| FROM centos:centos7 |
| |
| # This is passed to the heron build command via the --config flag |
| ENV TARGET_PLATFORM centos |
| ENV bazelVersion 0.2.3 |
| ENV JAVA_VERSION 8u31 |
| ENV BUILD_VERSION b13 |
| |
| RUN yum -y upgrade |
| RUN yum -y install \ |
| automake \ |
| curl \ |
| cmake \ |
| openssl-devel \ |
| file \ |
| gcc \ |
| gcc-c++ \ |
| git \ |
| kernel-devel \ |
| libtool \ |
| make \ |
| patch \ |
| python \ |
| python-devel \ |
| python-setuptools \ |
| zip \ |
| unzip \ |
| wget \ |
| which |
| |
| RUN yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel |
| |
| ENV JAVA_HOME /usr/lib/jvm/java-1.8.0 |
| |
| RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \ |
| && chmod +x /tmp/bazel.sh \ |
| && /tmp/bazel.sh |
| |
| ADD bazelrc /root/.bazelrc |
| ADD compile-platform.sh /compile-platform.sh |