-
Notifications
You must be signed in to change notification settings - Fork 31
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
Copy out mechanism #162
Comments
I'd like to be able to copy-out generated files for ssh keys, ssl certificates, or even backups. this sounds like a useful feature to have. |
@davidchisnall In your specific case, the container state needs to be initialised once. While recreating the container, instead of re-initlize it, you want to import the initialized state. Am I correct? A secure/safe copy-out implementation is complicated, but however possible (probably without globbing, tho) |
Yes, exactly. The scripts are here if you want to look. The I am currently just copying the files out of where |
I've just wrote an implementation of copy-out. |
That sounds great. Once that's in the version in packages, I can start using it in our CI system. |
* copy-out: initial implementation with tests * copy-out: add it to pot * copy-in: adopt mktemp to create the mountpoint * copy-[in,out]: remove the temp dir if needed * zsh: add copy-out Fixes #162
Is your feature request related to a problem? Please describe.
I want to build a container-like system where some of the container state needs to be initialised from within the container. Specifically, I am working on some pots for GitHub action runners and want to be able to recreate the pot and reimport the output of the one-time setup that registers the runner. My desired workflow is:
Describe the feature you'd like to have
I would like a copy-out analogue of copy-in so that I can copy files out of the jail once the initial setup step has been done and reinject them.
Describe potential alternatives or workaround you've considered (if any)
I considered using mount-in, but I can't use environment variables inside the flavour file and I can't pass explicit arguments to flavours and so I can do this only with a single static location. I don't know if mount-in is preserved in the final pot either - it is not documented either way and there is no corresponding unmount-in, so I presume it isn't - this is the behaviour that I'd want, mount-in for a single invocation so that the setup script can run the configuration and copy it to the exported folder.
The text was updated successfully, but these errors were encountered: