mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
9aaa42156b
* Upgrade Grail Bazel toolchain to latest release v0.7.2 This should allow Prysm to compile on Ubuntu 21.10 and 22.04 * Changes necessary in .bazelrc for new version of com_grail_bazel_toolchain * Add cross compilation for OSX ARM64 (Apple Silicon) * Update cross-toolchain README to include osx_arm64 * Add double quotes to shell code * Rename install_clang_cross10.sh -> install_clang_cross.sh * Update with prysmatic labs uploaded assets * Touch README to trigger CI * Revert "Touch README to trigger CI" This reverts commit 826ac8a6d8da4fe0bd8503511b00576e50861850. Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
44 lines
1.5 KiB
Docker
44 lines
1.5 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:bullseye-slim 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=12.0.0
|
|
ADD install_clang_cross.sh /tmp/install_clang_cross.sh
|
|
RUN /tmp/install_clang_cross.sh
|
|
|
|
# install osxcross
|
|
ADD install_osxcross.sh /tmp/install_osxcross.sh
|
|
ADD common_osxcross.sh /tmp/common_osxcross.sh
|
|
RUN /tmp/install_osxcross.sh
|
|
ADD link_osxcross.sh /tmp/link_osxcross.sh
|
|
RUN /tmp/link_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
|