0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-86660 Switch Bazel to use amazonlinux based remote execution container (#19006)

GitOrigin-RevId: 1908ec359588923d695ff4c0c3342951e68daeec
This commit is contained in:
Zack Winter 2024-02-15 19:09:33 -08:00 committed by MongoDB Bot
parent 09198121f1
commit d3cf02ae30
3 changed files with 23 additions and 6 deletions

View File

@ -1,12 +1,12 @@
REMOTE_EXECUTION_CONTAINERS = {
"linux_amd64": {
# debian gcc based image contains the base our toolchain needs (glibc version and build-essentials)
# https://hub.docker.com/layers/library/gcc/12.3-bookworm/images/sha256-6a3a5694d10299dbfb8747b98621abf4593bb54a5396999caa013cba0e17dd4f?context=explore
"container-image": "docker://docker.io/library/gcc@sha256:6a3a5694d10299dbfb8747b98621abf4593bb54a5396999caa013cba0e17dd4f",
# amazon linux 2 based image contains the base our toolchain needs (glibc version and build-essentials)
# https://quay.io/repository/mongodb/bazel-remote-execution/manifest/sha256:529162c1dedd8f72a7b65ed4b9d98439290ba29c350c01da8083b72dfdcec6f0
"container-image": "docker://quay.io/mongodb/bazel-remote-execution@sha256:529162c1dedd8f72a7b65ed4b9d98439290ba29c350c01da8083b72dfdcec6f0",
},
"linux_arm64": {
# debian gcc based image contains the base our toolchain needs (glibc version and build-essentials)
# https://hub.docker.com/layers/library/gcc/12.3-bookworm/images/sha256-6a3a5694d10299dbfb8747b98621abf4593bb54a5396999caa013cba0e17dd4f?context=explore
"container-image": "docker://docker.io/library/gcc@sha256:6a3a5694d10299dbfb8747b98621abf4593bb54a5396999caa013cba0e17dd4f",
# amazon linux 2 based image contains the base our toolchain needs (glibc version and build-essentials)
# https://quay.io/repository/mongodb/bazel-remote-execution/manifest/sha256:4d376a21c811b537c039bd366341f4897fee5c3c03c8b7373ff4b4537a7a0b5f
"container-image": "docker://quay.io/mongodb/bazel-remote-execution@sha256:4d376a21c811b537c039bd366341f4897fee5c3c03c8b7373ff4b4537a7a0b5f",
},
}

View File

@ -0,0 +1,7 @@
# Push the base image used by bazel remote execution hosts.
docker buildx create --use default
docker buildx build --push \
--platform linux/arm64/v8,linux/amd64 \
--tag quay.io/mongodb/bazel-remote-execution:latest .

View File

@ -0,0 +1,10 @@
# Image used by bazel remote execution hosts.
# Use Amazon Linux 2 as a base image to get a glibc that's old enough to be compatible with all
# supported distros (glibc v2.26)
FROM amazonlinux:2
# glibc-devel is required for headers, libzstd is required by gcc.
RUN yum -y install glibc-devel libzstd
CMD ["/bin/bash"]