Skip to content

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

@mathjazz

Description

@mathjazz

This issue was created automatically by a script.

Bug 1720875

Bug Reporter: @eemeli
CC: @mathjazz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions