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

Use docker_image resource with build_if_missing action with buildkit #1212

Open
mwirtala opened this issue Jan 27, 2022 · 0 comments
Open

Use docker_image resource with build_if_missing action with buildkit #1212

mwirtala opened this issue Jan 27, 2022 · 0 comments
Labels
Feature Request Enhancement to existing functionality or new functionality

Comments

@mwirtala
Copy link

:person_frowning: Problem Statement

A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]

❔ Possible Solution

I am trying to find a way to use the docker_image resource with the 'build_if_missing' action such that, if a docker build is triggered, it is done using buildkit.

⤴️ Describe alternatives you've considered

I have tried setting ENV['DOCKER_BUILDKIT'] = '1' in my chef code prior to execution of docker_image but this does not seem to do the trick.

➕ Additional context

We could also maintain two Dockerfiles in our case, each of which would be triggered under different conditions in our code. Or we could switch use of the docker_image resource to the execute resource, potentially, though finding a solution with the docker_image resource would be ideal.

@mwirtala mwirtala added the Feature Request Enhancement to existing functionality or new functionality label Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Enhancement to existing functionality or new functionality
Projects
None yet
Development

No branches or pull requests

1 participant