Questions tagged bitbucket-pipelines

Explore the latest questions and answers asked by our top developers.

failed to create containerd task: failed to create shim: the file /bin/sh is not exist

i’m trying to run my own image on bitbucket pipelines with this configuration: pipelines: branches: dev: – step: image: name: widgetbook/widgetbook-hosting-bitbucket:dev script: – echo "hello" however, the pipeline fails with failed to create containerd task: failed to create shim: the file /bin/sh is not exist: unknown I am using a very similar image which runs […]

By Jens
Categorised as bitbucket-pipelines, docker Tagged ,

Skipping cloning again between steps bitbucket pipelines

I have a setup where a monorepo runs some parallel steps and each step currently does a clone. Each steps adds up extra 1 min cloning time to build time as its repetitive and unencessary. As you can see the build setup takes around 1 minutes to clone the repo. Is there a way we […]

By Leap Hawk
Categorised as bitbucket, bitbucket-pipelines, docker, git Tagged , , ,

How to use the image between steps in bitbucket-pipelines

I would be grateful if someone could help me with setting up bitbucket-pipeline for my php env. What I’m trying to succeed is: Build image in the first step In the second step run some QA stuff like unit test, code sniffer etc. Deploy to preprod envirement Currently I’m stuck with re-using image from the […]

By marcino0o
Categorised as bitbucket-pipelines, docker, php Tagged , ,

Unable to use a private image from dockerhub in bitbucket pipelines

I have been unable to use my private image which has been successfully pushed to docker hub in my bitbucket pipelines. The build step fails without giving a specific error log. image: name: reponame/imagename username: $DOCKER_HUB_USERNAME password: $DOCKER_HUB_PASSWORD email: $DOCKER_HUB_EMAIL pipelines: default: – step: name: Code linting test script: – echo "Working" where in the […]

By Karen
Categorised as bitbucket-pipelines, docker, dockerhub Tagged , ,

How to cache/reuse docker image instead of downloading for each step in bitbucket pipeline?

I’m trying to streamline my pipeline a little bit to speed things up (using parallel steps). The issue that I’m running into is that it downloads the image for each step; is there a way to avoid that? I’d like it to use the image I state, but then use a cached version of that […]

Bitbucket pipeline steps: can 2nd step rely on 1st step containers

In my bitbucket pipeline, I would like to start my containers and then run yarn test, NOTICE that the test is relying on running containers, that’s why I defined my step as following: steps: – step: &start-container name: Run containers image: docker/compose:alpine-1.26.1 caches: – docker script: – docker-compose -f docker-compose.yml – yarn test Problem is […]

JUnit5 Testcontainers docker compose module test initialization error: Container startup failed in Bitbucket Pipelines

I have springboot app with a test using JUnit5 depends on minio and minio/mc. Since I already have docker-compose.yml file for them, I use Testcontainers docker compose module in the test. But I got this error in bitbucket-pipelines: org.testcontainers.containers.ContainerLaunchException: Container startup failed at org.testcontainers.containers.GenericContainer.doStart( at org.testcontainers.containers.GenericContainer.start( at org.testcontainers.containers.ContainerisedDockerCompose.invoke( at org.testcontainers.containers.DockerComposeContainer.runWithCompose( at org.testcontainers.containers.DockerComposeContainer.createServices( at org.testcontainers.containers.DockerComposeContainer.start( at […]

Why Does Bitbucket Pipelines Give Me a Sass Error Saying That Either It Can’t Find File to Import or File Is Unreadable?

Used the docker template of bitbucket-pipelines.yml to create a docker image from a bitbucket repository. I modeled it off an old repo that has an already created docker image, but I’m getting sass errors now. Any thoughts on what this could be? The messages I’m seeing are copied below. SassError: File to import not found […]

Spring Boot Bitbucket Pilpline to ECR

I try to build a CI/CD Pipeline with Bitbucket-Pipelines. My dockerized Spring Boot Application should be pushed to my AWS ECR. But when the pipeline executes the docker commands it throws an error: COPY failed: file not found in build context or excluded by .dockerignore: stat target/app.jar: file does not exist Does anyone set up […]

Bitbucket pipelines composer patch fails

I have a very simple pipelines config so far, I am just trying to get the app to build before I look to adding anything else to it. But, even in its simple state, I can’t get composer to successfully patch a file. The entire composer install works flawlessly until this point. – Applying patches […]

By Christian
Categorised as bitbucket-pipelines, composer-php, docker, php Tagged , , ,
1 2 3 6

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us