Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: allow for configurable ignore paths #33

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

Merged
merged 3 commits into from
Jul 18, 2023
Merged

feat: allow for configurable ignore paths #33

merged 3 commits into from
Jul 18, 2023

Conversation

kylecarbs
Copy link
Member

This resolves coder/coder#8540.

@kylecarbs kylecarbs requested a review from bpmct July 18, 2023 15:49
@kylecarbs kylecarbs self-assigned this Jul 18, 2023
envbuilder.go Outdated
options.WorkspaceFolder,
// Required for devcontainer to ignore directories like /var/run/secrets,
// which frequently has mounted read-only runtime secrets.
"/var/run",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean files added to /var/run won't be snapshotted? I think that's probably okay in most cases, but might be confusing if someone actually wants to build those files into the container image. Maybe a configurable ignore list would be best?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm changing this to /var/run/secrets instead to get closer to the actual problem, and it will become a configurable ignore array in the future that allows users to improve caching without us promoting a bespoke filesystem format.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, seems like I actually can't make it be a nested dir because it attempts to remove /var/run. I'm going to make this configurable now to save us some headaches.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's now configurable! Thanks for the feedback 🥳

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@kylecarbs kylecarbs changed the title fix: skip /var/run on unpack feat: allow for configurable ignore paths Jul 18, 2023
@kylecarbs kylecarbs merged commit 6617d81 into main Jul 18, 2023
@kylecarbs kylecarbs deleted the fixvarrun branch July 18, 2023 16:19
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

Successfully merging this pull request may close these issues.

Devcontainer fails to build
2 participants