Our pipeline keeps on failing without giving a reason why.
It certainly has something to do with our custom Docker image, but I cannot figure out what exactly. Whenever I try another public image, the pipeline runs just fine. But if I use our own, it fails on the build step.
The Docker image: https://hub.docker.com/r/sudwestfryslan/default-pipeline
bitbucket-pipelines.yml
image:
name: sudwestfryslan/default-pipeline
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL
pipelines:
default:
- step:
script:
- php --version
- npm --version
What I have tried:
Right now I'm kind of stuck, as I do not know what error is occurring.
Thank you for your question!
Have you tried to move custom docker image usage to the step and add service: - docker parameter?
image:
name: atlassian/default-image:3
pipelines:
default:
- step:
image: sudwestfryslan/default-pipeline
script:
- php --version
- npm --version
service:
- docker
Also, try to test your custom docker image locally with command and make sure that it works correctly:
docker run -it sudwestfryslan/default-pipeline
Best regards,
Oleksandr Kyrdan
I have tested the image locally and it works :). But it did turn out that my local machine was the 'problem' so to speak.
I'm on a mac with a M1 processor. This, by default, produces ARM images. And apparently these do not work on the Pipelines.
For anyone encountering the same issue, I've written a short blogpost about it here https://sanderdekroon.xyz/blog/bitbucket-pipelines-docker-and-the-apple-m1-chip/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sander de Kroon Thank you for sharing your solution and contributing to the community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this saved my day :D thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I spent way to long debugging this problem, until I found this thread.
Sanders Blog is gone, but for anyone having the same problem, the blog post can be restored here: http://web.archive.org/web/20230926025303/https://sanderdekroon.xyz/blog/bitbucket-pipelines-docker-and-the-apple-m1-chip/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.