community.docker
community.docker copied to clipboard
Add more Docker Compose modules
SUMMARY
The following could make sense as new modules. See https://github.com/ansible-collections/community.docker/issues/941#issuecomment-2251219797 for more details.
- [ ]
build: makes sense as its own module docker_compose_v2_build - [ ]
cp: makes sense as its own module, or two (copy into/out of container?) - [x]
exec: makes sense as its own module docker_compose_v2_exec (#969) - [ ]
push: makes sense as its own module docker_compose_v2_push - [x]
run: makes sense as its own module docker_compose_v2_run (#969) - [ ]
wait: might make sense as its own module - [ ] docker_compose_v2_info
ISSUE TYPE
- Feature Idea
COMPONENT NAME
new modules
I ended up here as I'm looking to create a playbook to update my Mastodon instance. As per the linked comment I can see you are looking for any relevant use cases before adding any of these so I'd like to request run please. The Mastodon update instructions sometimes require running commands such as docker-compose run --rm web bundle exec rails db:migrate (and/or others) which I would have to run via the shell plugin currently.
community.docker 3.13.0 (released earlier today) contains two new modules docker_compose_v2_exec and docker_compose_v2_run.