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

[REQ] Add support for per-command mounts on image+cmd type #437

Open
1 task
cpuguy83 opened this issue Nov 15, 2024 · 0 comments
Open
1 task

[REQ] Add support for per-command mounts on image+cmd type #437

cpuguy83 opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cpuguy83
Copy link
Member

What kind of request is this?

None

What is your request or suggestion?

Right now you can add mounts to image sources like:

sources:
  foo:
    image:
      cmd:
        mounts:
          # insert mounts here

The mounts get added to all steps defined in cmd.
The trouble here is now any command you run in the image is going to have its cache broken by any change to the mount content.
This means steps like installing some packages will always have to be re-run if the mount data changes even though the mount data does not affect that.

I propose that we can add support for adding mounts per cmd step.

Are you willing to submit PRs to contribute to this feature request?

  • Yes, I am willing to implement it.
@cpuguy83 cpuguy83 added the enhancement New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant