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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for additional docker_image build contexts #610

Open
Multox opened this issue Apr 10, 2024 · 0 comments
Open

feat: Add support for additional docker_image build contexts #610

Multox opened this issue Apr 10, 2024 · 0 comments

Comments

@Multox
Copy link

Multox commented Apr 10, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Docker now has the ability to use multiple build contexts. Add support for this feature.
Either change build.context to an array or add build.additional_contexts.

New or Affected Resource(s)

  • docker_image

Potential Terraform Configuration

resource "docker_image" "zoo" {
  name = "zoo"
  build {
    context = [".", "../someotherdir"]
    #OR (backwards-compatible version)
    additional_contexts = ["../foo", "../bar"]
  }
}

References

[https://www.docker.com/blog/dockerfiles-now-support-multiple-build-contexts]

@Multox Multox changed the title feat: Add support for additional build contexts feat: Add support for additional docker_image build contexts Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant