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_compose_v2 build functionality #750

Closed
b-reich opened this issue Jan 12, 2024 · 4 comments
Closed

docker_compose_v2 build functionality #750

b-reich opened this issue Jan 12, 2024 · 4 comments
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request

Comments

@b-reich
Copy link

b-reich commented Jan 12, 2024

SUMMARY

Add the functionality to build images with docker compose v2

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

docker_compose_v2

ADDITIONAL INFORMATION

There are different use-cases for this feature.

  • Adding custom configs to an existing image. (e.g. Webserver)
  • Build for custom system architecture like arm64
  • Directly build from main-branches for testing/development/troubleshooting or not having a image published anywhere.

Example from v1 module.

- name: Update Reverse Proxy
  community.docker.docker_compose:
  project_src: /opt/reverse-proxy
    pull: true
    build: true
    state: present
@felixfontein felixfontein added enhancement New feature or request docker-compose-v2 Docker Compose v2 labels Jan 13, 2024
@pgassmann
Copy link

If the image is not yet built, docker compose up will trigger a build.

a build functionality is needed to be able to update locally built images.

with docker_compose_v2_pull you can update the unaltered images.

I use docker compose build to install additional packages and updates for images like php

Currently, with the v1 module, we set build: true and pull: true when running the maintenance update playbook.

@felixfontein
Copy link
Collaborator

#760 implements a build option for docker_compose_v2.

@pgassmann
Copy link

@b-reich is the implementation of the build option enough for you? Can we close this issue as resolved?

@b-reich
Copy link
Author

b-reich commented Jan 24, 2024

Yes, it is perfect for my needs. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants