[CXX-2766] Investigate building arm64/aarch64 docker images in Evergreen Created: 18/Oct/23  Updated: 27/Oct/23  Resolved: 27/Oct/23

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.9.0

Type: Task Priority: Minor - P4
Reporter: Kyle Kloberdanz Assignee: Kyle Kloberdanz
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX-2663
Quarter: FY24Q3

 Description   

Currently, we are only publishing AMD64/x86_64 Docker images in Docker Hub. Running these images on ARM hosts – such as Apple Silicon Mac computers – results in performance degradations due to emulating AMD64 code on a different architecture. To alleviate this, we will do the following:

  1. Determine whether there are arm64/aarch64 hosts in Evergreen which have Docker installed. If not, then request it from the Evergreen team.
  2. Once arm64 hosts with Docker installed are available in Evergreen, create a CI task to build ARM images.


 Comments   
Comment by Githook User [ 27/Oct/23 ]

Author:

{'name': 'Kyle Kloberdanz', 'email': 'kyle.kloberdanz@mongodb.com', 'username': 'kkloberdanz'}

Message: Arm64 docker build (#1048)

CXX-2766

  • Remove Alpine Docker build.

libmongocrypt fails to build on ARM64 on Alpine (musl libc). Since we
don't officially support Alpine on ARM64, I'm removing the build for
now. Build error message below:

```
In file included from /usr/include/stdlib.h:21,
from /usr/include/fortify/stdlib.h:23,
from /build/libmongocrypt-1.8.2/test/test-mongocrypt.c:18:
/usr/include/bits/alltypes.h:15:18: note: previous declaration of 'wchar_t' with type 'wchar_t'

{aka 'unsigned int'}

15 | typedef unsigned wchar_t;

```

  • Create Docker ARM builder

Build Docker images in Evergreen on ARM64.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3f7183c66fbc964dd76beac3cbb35f4357b4e526

Generated at Wed Feb 07 22:06:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.