Closed Bug 1720875 Opened 4 years ago Closed 4 years ago

Pontoon build fails in Docker on M1 MacBooks due to segfault in curl

Categories

(Webtools Graveyard :: Pontoon, defect, P3)

ARM64
macOS

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: eemeli, Assigned: eemeli)

Details

Attachments

(2 files)

The issue is mentioned in the Docker Desktop release notes:

On Apple Silicon in native arm64 containers, older versions of libssl in debian:buster, ubuntu:20.04 and centos:8 will segfault when connected to some TLS servers, for example curl https://dl.yarnpkg.com. The bug is fixed in newer versions of libssl in debian:bullseye, ubuntu:21.04 and fedora:35.

The Pontoon Docker image uses python:3.8-buster as a base, and apparantely all current python images are themselves based on buster images.

As a workaround, forcing the platform to linux/amd64 appears to allow the build to succeed, as it's then emulated:

--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -5,6 +5,7 @@ version: "2"
 services:
   # Webapp
   webapp:
+    platform: linux/amd64
     build:
       context: .
       dockerfile: ./docker/Dockerfile
Assignee: nobody → earo
Status: NEW → ASSIGNED
Priority: -- → P3
*This bug has been moved to GitHub.* *Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → MOVED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: