2020-03-05 16:59:56 +00:00
|
|
|
# Prysmatic Labs Remote Build Execution Image with Cross Compile Support.
|
|
|
|
#
|
2023-03-07 20:09:46 +00:00
|
|
|
# See README.md for update instructions.
|
2020-03-05 16:59:56 +00:00
|
|
|
|
2022-01-10 15:48:43 +00:00
|
|
|
FROM debian:bullseye-slim as build
|
2020-03-05 16:59:56 +00:00
|
|
|
|
|
|
|
# install gnu/gcc cross-build toolchain (gcc 8.3)
|
|
|
|
ENV DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
curl xz-utils \
|
|
|
|
gcc g++ mingw-w64 \
|
|
|
|
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
|
|
|
|
cmake libssl-dev libxml2-dev vim apt-transport-https \
|
|
|
|
zip unzip libtinfo5 patch zlib1g-dev autoconf libtool \
|
2023-03-07 20:09:46 +00:00
|
|
|
pkg-config make docker.io gnupg2 libgmp-dev python3 openjdk-17-jdk-headless
|
2020-03-05 16:59:56 +00:00
|
|
|
|
|
|
|
# install llvm/clang cross-build toolchains
|
2022-08-11 21:40:24 +00:00
|
|
|
ENV INSTALL_LLVM_VERSION=12.0.0
|
|
|
|
ADD install_clang_cross.sh /tmp/install_clang_cross.sh
|
2020-03-05 16:59:56 +00:00
|
|
|
RUN /tmp/install_clang_cross.sh
|
|
|
|
|
|
|
|
# install osxcross
|
|
|
|
ADD install_osxcross.sh /tmp/install_osxcross.sh
|
2021-10-19 00:00:22 +00:00
|
|
|
ADD common_osxcross.sh /tmp/common_osxcross.sh
|
2020-03-05 16:59:56 +00:00
|
|
|
RUN /tmp/install_osxcross.sh
|
2021-10-19 00:00:22 +00:00
|
|
|
ADD link_osxcross.sh /tmp/link_osxcross.sh
|
|
|
|
RUN /tmp/link_osxcross.sh
|
2020-03-05 16:59:56 +00:00
|
|
|
|
|
|
|
# containerized development environment
|
|
|
|
FROM build as devel
|
2023-03-07 20:09:46 +00:00
|
|
|
|
|
|
|
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/
|
|
|
|
|
2020-03-05 16:59:56 +00:00
|
|
|
RUN echo 'PS1="\[$(tput setaf 3)$(tput bold)[\]devel@\\h:\\W]#\[$(tput sgr0) \]"' >> /root/.bashrc
|