I want to do a docker compose build and the related Dockerfile is a multi staged dockerfile.
But I'm trapped here with the limits of bitbucket pipelines.
For using docker compose build, i have to disable docker buildkit (according to this thread), but for using multi stage dockerfiles i have to enable docker buildkit (according to this thread).
Is there something i miss here? This is really a state-of-the-art way to do it and it would be cool if we could use state-of-the-art processes in our ci pipeline.
Hi Marcus,
For Pipelines builds running on Atlassian infrastructure, we've had to restrict certain Docker commands and options for security reasons:
Certain Docker BuildKit features have also been disabled:
These restrictions don't apply to builds running with a self-hosted runner, so if you'd like to use certain restricted commands you can use a self-hosted runner for a specific step. If you use a self-hosted Linux Docker runner, you will need to use a custom dind image:
If you'd like advice specific to your use case, I'll need to see the content of the Dockerfile, the docker-compose.yml file, what Docker commands you are running in your bitbucket-pipelines.yml file and what is the output of any failed commands during the build.
If you don't feel comfortable sharing that here, you can create a ticket with the support team and share the URL of a failed Pipelines build so we can look into it. You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.