2020-04-23 13:58:08 +02:00
|
|
|
FROM centos:7.6.1810
|
|
|
|
|
|
|
|
ARG gcc_version=4.9-2016.02
|
|
|
|
ENV GCC_VERSION $gcc_version
|
|
|
|
|
|
|
|
# Install requirements
|
|
|
|
RUN yum install -y wget tar git make redhat-lsb-core autoconf automake libtool glibc-devel libaio-devel openssl-devel apr-devel lksctp-tools
|
|
|
|
|
|
|
|
# Install Java
|
2020-10-12 14:13:01 +02:00
|
|
|
RUN yum install -y java-11-openjdk-devel
|
2020-04-23 13:58:08 +02:00
|
|
|
|
|
|
|
# Install aarch64 gcc toolchain
|
|
|
|
RUN set -x && \
|
|
|
|
wget https://releases.linaro.org/components/toolchain/binaries/$GCC_VERSION/aarch64-linux-gnu/gcc-linaro-$GCC_VERSION-x86_64_aarch64-linux-gnu.tar.xz && \
|
|
|
|
tar xvf gcc-linaro-$GCC_VERSION-x86_64_aarch64-linux-gnu.tar.xz
|
|
|
|
|
|
|
|
ENV PATH="/gcc-linaro-$GCC_VERSION-x86_64_aarch64-linux-gnu/bin:${PATH}"
|
2020-10-12 14:13:01 +02:00
|
|
|
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk/"
|