It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Docker caching stopped working

We are using the pre-defined docker cache from bitbucket pipeline.

Until about a month ago the caching worked like a charm and build times for our django backend were in the order of 1min. If we rebuild that same commit with the pipeline today we have a build time of 6min even if the cache is properly populated.

Has anybody experienced a similar behavior?

Here is our bitbucket-pipeline.yml file:

image: docker/compose:1.25.0-rc2-alpine

options:
docker: true

definitions:
steps:
- step: &build-test-django
name: Build and test of Django
caches:
- docker
script:
- docker-compose -f docker-compose.yml run django pytest
- step: &build-test-frontend
name: Build and test frontend
caches:
- docker
script:
- docker-compose -f docker-compose.yml run -e CI=true frontend bash -c "npm install && npm test"
services:
docker:
memory: 2048

pipelines:
pull-requests:
'**':
- parallel:
- step: *build-test-django
- step: *build-test-frontend
branches:
develop:
- parallel:
- step: *build-test-django
- step: *build-test-frontend
master:
- parallel:
- step: *build-test-django
- step: *build-test-frontend

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Share your software development horror stories!

Hey Community! I work on the Bitbucket product marketing team. With Halloween approaching, we wanted to discuss a topic tailor-made for October: development horror stories. Whether it was a lurk...

1,549 views 11 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you