mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
ae4a8b3aeb
* Update RBE toolchain and image to have libgmp-dev with bazel 3.2.0 * Merge branch 'master' into update-cross-compile * some fixes for herumi cross compile * gaz
41 lines
1.4 KiB
Docker
41 lines
1.4 KiB
Docker
# Prysmatic Labs Remote Build Execution Image with Cross Compile Support.
|
|
#
|
|
# Update instructions.
|
|
# - Build the docker image.
|
|
# - Push to gcr.io.
|
|
# - Update _PRYSM_BUILD_IMAGE_DIGEST in //tools/cross-toolchain/rbe_toolchains_config.bzl
|
|
# - Run ./tools/cross-toolchain/regenerate.sh
|
|
# - Add and commit the newly generated configs.
|
|
# - Done!
|
|
#
|
|
# docker build -t gcr.io/prysmaticlabs/rbe-worker:latest .
|
|
# gcloud docker -- push gcr.io/prysmaticlabs/rbe-worker:latest
|
|
|
|
FROM debian:buster as build
|
|
|
|
# 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 \
|
|
pkg-config make docker.io gnupg2 libgmp-dev python
|
|
|
|
# install llvm/clang cross-build toolchains
|
|
ENV INSTALL_LLVM_VERSION=10.0.0-rc2
|
|
ADD install_clang_cross10.sh /tmp/install_clang_cross.sh
|
|
RUN /tmp/install_clang_cross.sh
|
|
|
|
# install osxcross
|
|
ADD install_osxcross.sh /tmp/install_osxcross.sh
|
|
RUN /tmp/install_osxcross.sh
|
|
|
|
# containerized development environment
|
|
FROM build as devel
|
|
RUN mkdir /workdir
|
|
WORKDIR /workdir
|
|
RUN echo 'PS1="\[$(tput setaf 3)$(tput bold)[\]devel@\\h:\\W]#\[$(tput sgr0) \]"' >> /root/.bashrc
|