Replies: 2 comments 1 reply
-
I would focus on replicating it locally if you can before adding the layer of GItLab in between. One thing that could be different compared to your set up and mine is the image you're building in: https://gitlab.com/colegiorecanto/serversideup-libc-bin/-/blob/main/.gitlab-ci.yml?ref_type=heads#L21 These are the steps I take during our builds: docker-php/.github/workflows/service_docker-build-and-publish.yml Lines 94 to 161 in 825625b It calls this GitHub Action: https://github.com/docker/setup-qemu-action Which uses this image for the QEMU builds: https://hub.docker.com/r/tonistiigi/binfmt/tags I ran this build from my side (which does the I know this isn't an answer you were looking for, but hopefully these clues help! |
Beta Was this translation helpful? Give feedback.
-
Thanks for taking some time trying to help! Really appreciate it! All of my attempts works fine locally. The problems are only in Gitlab pipeline when building for arm64. I was using I saw this in your build log:
and tried to use it instead of Tried installing the emulators from I was needing gnupg just to add a microsoft repository to install msodbcsql 18 driver (I need to connect to MSSQL server). I ended up creating some shell scripts to build the image locally and push it to our repository. |
Beta Was this translation helpful? Give feedback.
-
Hi folks!
I spent a day learning about image customization options and finally got to a development environment that suits my needs.
So I decided to test it in a Gitlab CI/CD pipeline to build a production image.
I need
gnupg
to add some third party repository.I'm working in a remote linux machine running in a arm64 architecture.
Docker buildx runs fine on it, even if I target multiple architectures, including amd64.
BUUUUUT, I'm getting an error on Gitlab pipeline when targeting arm64 architecture.
I use this same aproach with other images and it works fine.
IMAGE: serversideup/php:7.4-fpm-nginx-bullseye-v3.4.5
sha256:e3550c66a9946b490ae6faa02e6facabe97edd5c25e6b87be80106f6906f590e
In the build logs I see a segmentation fault when setting up libc-bin (2.31-13+deb11u5)
I got a repo up with the minimal code to reproduce the error.
Just clone it and start a pipeline.
https://gitlab.com/colegiorecanto/serversideup-libc-bin.git
Any ideas?
Anyone knows a better way to build for arm64 on Gitlab?
Is this a problem with the image?
Considerations:
apt upgrade
beforeapt install gnupg2
.libc-bin
beforeapt install gnupg2
.gnupg
also.docker-php-serversideup-dep-install-debian
instead ofapt-get
.But I need php 7.4 version.
Output from docker build around the error (full log bellow)
Full output from docker build last attemp:
Beta Was this translation helpful? Give feedback.
All reactions