Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mathjazz opened this issue Jul 15, 2021 · 2 comments
Open

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

mathjazz opened this issue Jul 15, 2021 · 2 comments
Labels

Comments

@mathjazz
Copy link
Owner

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
@mathjazz
Copy link
Owner Author

Comment Author: GitHub Bugzilla PR Linker <[email protected]>

Created attachment 9231626
Link to GitHub pull-request: mozilla#1973

Attached file: file_691649859.txt (text/x-github-pull-request, 44 bytes)
Description: Link to GitHub pull-request: mozilla#1973

@mathjazz
Copy link
Owner Author

mathjazz commented Sep 2, 2021

Comment Author: GitHub Bugzilla PR Linker <[email protected]>

Created attachment 9239343
Link to GitHub pull-request: mozilla#2008

Attached file: file_726709919.txt (text/x-github-pull-request, 44 bytes)
Description: Link to GitHub pull-request: mozilla#2008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant