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

feat: make finch config available in VM at $HOME/.finch #1180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kern--
Copy link
Contributor

@Kern-- Kern-- commented Nov 12, 2024

Issue #, if available:
N/A

Description of changes:

NerdctlConfigApplier updates the user's bash rc in the VM to point DOCKER_CONFIG to the mounted .finch dir from the host OS. This works when the bash rc is loaded, but doesn't work for, e.g., systemd user services.

This change makes the finch config available available at $HOME/.finch in the VM so there is a clear place to load config via systemd user services without relying on any bash rcs.

Testing done:
Verified the updated unit test

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Shubhranshu153
Shubhranshu153 previously approved these changes Nov 12, 2024
@Shubhranshu153
Copy link
Contributor

Unit test needs to be fixed, others are flaky, rerun will fix it.

NerdctlConfigApplier updates the user's bash rc in the
VM to point DOCKER_CONFIG to the mounted .finch dir from
the host OS. This works when the bash rc is loaded, but
doesn't work for, e.g., systemd user services.

This change makes the finch config available available at
$HOME/.finch in the VM so there is a clear place to load
config via systemd user services without relying on any
bash rcs.

Signed-off-by: Kern Walster <[email protected]>
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.

3 participants