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

Add support for build additional_contexts to reference other service targets #10834

Closed
andytson opened this issue Jul 20, 2023 · 2 comments
Closed

Comments

@andytson
Copy link

andytson commented Jul 20, 2023

Description

I'd like to be able to reference other services stages in a service's build contexts.

This is possible using buildx bake's contexts support for another bake target, but doesn't appear to be implemented yet in compose yet, but build.additional_contexts exists for other context types.

example:

service:
  console:
     build:
       context: ./docker/console
  app:
    build:
      context: ./docker/app
      additional_contexts:
        src: service:console

should provide the console build's target to app as src context.

To make this clear, service:console isn't supported currently by additional_contexts, it's what I'm asking for.

@andytson

This comment was marked as resolved.

@andytson
Copy link
Author

seems to be fixed in #12485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants