-
Notifications
You must be signed in to change notification settings - Fork 522
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
host-ctr: Add "current" generic persistent storage location #1416
host-ctr: Add "current" generic persistent storage location #1416
Conversation
If the goal is to let scripts know where the host-container's persistent storage location is, maybe we can utilize environment variables instead of trying to mount the same thing twice.
|
Or just set |
There are definitely pros and cons to both methods. I'm leaning more towards what @etungsten is saying with the ENV, but using |
Is it going to be possible to symlink |
Right, the symlink would have to be created in |
I'm switching this PR to draft and proposing #1422 as an alternative. |
cfdb8c9
to
9b414b4
Compare
|
This adds an additional mount of the /local/host-containers/NAME directory as /.bottlerocket/host-containers/current to provide a generic persistent storage location that isn't tied to the name of the container. This makes it easier for scripts to utilize the storage.
9b414b4
to
edffc82
Compare
|
Inspired by the discussion here, I opened #1424 for environment variables we should definitely set: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍚
Issue number:
N/A
Description of changes:
This adds an additional mount of the
/local/host-containers/NAME
directory as/.bottlerocket/host-containers/current
to provide a generic persistent storage location that isn't tied to the name of the container. This makes it easier for scripts to utilize the storage.Testing done:
aws-ecs-1
ami and launched instance./.bottlerocket/host-containers/
contained both acontrol
directory and acurrent
directory./.bottlerocket/host-containers/
contained both anadmin
directory and acurrent
directory./.bottlerocket/host-containers/admin/
and/.bottlerocket/host-containers/current/
had the same contents.sudo sheltie
to verify root shell was still available.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.