Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: support cache_from in create playbook #252

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Apr 28, 2024

Support plumbing cache_from parameter in create.yml playbook.

This parameter is very useful for external CI/CD caches, especially where there is no persistence between runs as described in https://docs.docker.com/build/cache/backends/

Molecule works great in my environment, but spends a long time rebuilding images in community.docker.docker_image:

===============================================================================
Build an Ansible compatible image (new) -------------------------------- 87.64s

I'd like to pass cache_from rather than fork the create.yml playbook, to make molecule tests faster for CI/CD servers and our developers: we do this already for adhoc docker-compose + ansible based tests. Thank you!

@ssbarnea ssbarnea added the bug Something isn't working label Jun 12, 2024
@ssbarnea ssbarnea changed the title docker driver: support cache_from in create playbook docker: support cache_from in create playbook Jun 12, 2024
@ssbarnea ssbarnea merged commit 6fe434c into ansible-community:main Jun 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants