2020-04-23 13:58:08 +02:00
|
|
|
FROM centos:7.6.1810
|
|
|
|
|
2021-03-25 09:32:57 +01:00
|
|
|
ARG gcc_version=10.2-2020.11
|
2020-04-23 13:58:08 +02:00
|
|
|
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
|
|
|
|
2021-03-25 09:32:57 +01:00
|
|
|
# Install aarch64 gcc 10.2 toolchain
|
|
|
|
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-a/$GCC_VERSION/binrel/gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu.tar.xz && \
|
|
|
|
tar xvf gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu.tar.xz && mv gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu /opt/
|
|
|
|
ENV PATH="/opt/gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu/bin:${PATH}"
|
2020-04-23 13:58:08 +02:00
|
|
|
|
2020-10-12 14:13:01 +02:00
|
|
|
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk/"
|