77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
|
FROM debian:stable-slim
|
||
|
|
||
|
ENV DEBIAN_FRONTEND noninteractive
|
||
|
|
||
|
RUN dpkg --add-architecture arm64
|
||
|
|
||
|
RUN apt-get update && apt-get upgrade -y
|
||
|
|
||
|
RUN apt-get install wget -y
|
||
|
|
||
|
RUN wget https://cdn.azul.com/zulu/bin/zulu11.41.23-ca-jdk11.0.8-linux_amd64.deb -O /tmp/install.deb 2>/dev/null
|
||
|
RUN mkdir -p /usr/share/man/man1
|
||
|
RUN apt-get install /tmp/install.deb -y
|
||
|
|
||
|
RUN apt-get install openjdk-11-jdk:arm64 -y
|
||
|
|
||
|
RUN apt-get install sudo -y
|
||
|
|
||
|
RUN apt-get install maven -y
|
||
|
|
||
|
RUN apt-get install gcc gperf make cmake ccache -y
|
||
|
|
||
|
#RUN apt-get install clang libc++-dev libc++abi-dev -y
|
||
|
|
||
|
RUN apt-get install libssl-dev:amd64 zlib1g-dev:amd64 -y
|
||
|
|
||
|
RUN apt-get install libssl-dev:arm64 zlib1g-dev:arm64 -y
|
||
|
|
||
|
RUN apt-get install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu crossbuild-essential-arm64 -y
|
||
|
|
||
|
RUN apt-get install python3 -y
|
||
|
|
||
|
RUN apt-get install php-fpm php-cli -y
|
||
|
|
||
|
RUN apt-get install libreadline-dev git -y
|
||
|
|
||
|
#RUN wget http://mirror.archlinuxarm.org/aarch64/core/zlib-1:1.2.11-4-aarch64.pkg.tar.xz -O /tmp/zlib_cross.tar.xz 2>/dev/null
|
||
|
#RUN mkdir -p /usr/lib/zlib_cross
|
||
|
#RUN tar -xvf /tmp/zlib_cross.tar.xz -C /usr/lib/zlib_cross
|
||
|
#RUN rm /tmp/zlib_cross.tar.xz
|
||
|
|
||
|
#RUN wget http://mirror.archlinuxarm.org/aarch64/core/openssl-1.1.1.h-1-aarch64.pkg.tar.xz -O /tmp/openssl_cross.tar.xz 2>/dev/null
|
||
|
#RUN mkdir -p /usr/lib/openssl_cross
|
||
|
#RUN tar -xvf /tmp/openssl_cross.tar.xz -C /usr/lib/openssl_cross
|
||
|
#RUN rm /tmp/openssl_cross.tar.xz
|
||
|
|
||
|
ARG UNAME=debian
|
||
|
ARG UID=1000
|
||
|
ARG GID=1000
|
||
|
RUN groupadd -g $GID -o $UNAME
|
||
|
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
|
||
|
RUN usermod -a -G sudo $UNAME
|
||
|
RUN echo "$UNAME ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||
|
USER $UNAME
|
||
|
|
||
|
RUN mkdir /home/$UNAME/work
|
||
|
|
||
|
RUN mkdir /home/$UNAME/output
|
||
|
|
||
|
WORKDIR /home/$UNAME/work
|
||
|
|
||
|
ENV CCACHE_DIR=/home/$UNAME/.ccache
|
||
|
|
||
|
ENV JAVA_HOME=/usr/lib/jvm/zulu-11-amd64
|
||
|
ENV JAVA_INCLUDE_PATH=/usr/lib/jvm/zulu-11-amd64/include
|
||
|
ENV JAVA_INCLUDE_PATH2=/usr/lib/jvm/zulu-11-amd64/include/linux
|
||
|
ENV JAVA_AWT_INCLUDE_PATH=/usr/lib/jvm/zulu-11-amd64/include
|
||
|
ENV JAVA_AWT_LIBRARY=/usr/lib/jvm/zulu-11-amd64/lib
|
||
|
ENV JAVA_JVM_LIBRARY=/usr/lib/jvm/zulu-11-amd64/lib
|
||
|
|
||
|
ENV TRAVIS_CPU_ARCH=arm64
|
||
|
ENV TRAVIS_OS_NAME=linux
|
||
|
ENV TRAVIS_BUILD_DIR=/home/$UNAME/work
|
||
|
ENV TRAVIS_OUTPUT_DIR=/home/$UNAME/output
|
||
|
|
||
|
CMD ["bash"]
|