Create
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 
Sign up Log in

Pipeline pulls docker image but not work

ferpaxecosanxez April 5, 2023

Hello team,

I am testing public docker images and this is my case:

I pulled in my local public image "atlassian/default-image:4", I tag and I push in my public DockerHub "s4gconsulting/bitbucket", in other words, the same image with different name within my public DockerHub.

Well, i have the next YML that pointing Atlassian public DockerHub:

## Depth to clone project
clone:
depth: full

## Use S4G image to manage Salesforce code
image:
name: atlassian/default-image:4

pipelines:
default:
- step:
name: Validate Docker Image
script:
- echo "Public image OK"

The result with this public image is OK, and has the same code SHA

Screenshot 2023-04-05 at 09.48.09.png

Now, I want use my public Docker image, which is a copy from "atlassian/default-image:4", so, my updated YML is:

## Depth to clone project
clone:
depth: full

## Use S4G image to manage Salesforce code
image:
name: s4gconsulting/bitbucket:latest

pipelines:
default:
- step:
name: Validate Docker Image
script:
- echo "Public image OK"

The public image was pulled (code SHA is right), but the result is ERR:

Screenshot 2023-04-05 at 09.26.51.png

 

If the public images are pulled for each pipeline:

  • Why the second pipeline fails?
  • Why the second pipeline cannot run: echo "Public image OK"?

Please, help πŸ˜₯

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 12, 2023

Hi @ferpaxecosanxez,

Thank you for reaching out to the community.

The reason why your Pipelines build is failing while using the custom Docker image (s4gconsulting/bitbucket:latest) is that it was built using linux/arm64 architecture.

For comparison, you can check the following links and notice the "OS/ARCH" field:

Unfortunately, we do not officially support ARM images on Bitbucket Cloud Pipelines infrastructure at the moment.
We do have an existing feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-15317
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.

For now, you can rebuild your custom Docker image and use linux/amd64 architecture instead.

Hope it helps and let me know how it goes.

Regards,
Mark C

ferpaxecosanxez April 12, 2023

Hi @Mark C,

Indeed, when generating an image with the linux/amd64 architecture, everything works correctly.

As a suggestion, that error could be reported by pipeline logs like: Currently the architecture "linux/arm64" is not supported.

Thank you very much 😊

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events