-
Notifications
You must be signed in to change notification settings - Fork 96
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
Mounting external directories using command line option #574
Comments
I'm not against such an option, but I'm not sure what is a use case? As in my use cases I would not want to write that in command-line each time, so I would put this into an alias file, which is a close equivalent to config. The important difference here is that adding Alternative for this solution is also:
Which works both, for new users, by putting it in Or is your goal to unify local cache with in-container cache? Then also putting |
Possibly I've found a better use case for the option. Imagine you want to override a dependency: dkregistry = { path="../dkregistry-rs" } At the moment you can add your root projects directory as external volume to be able to mount it inside a container. But it is less secure as all containers will be able to see content of the projects directory. |
One problem is that there is no mount point in the container if we don't create it in advance. As a workaround we could mount such an external directory inside your |
vagga --mount-bind $HOME/.cargo:/work/target/.cargo run
At the moment we can emulate such a behavior:
vagga.yaml
:Think it is too complex to be really useful.
Possible options:
--mount-bind
--mount-bind-ro
--mount-tmpfs
--mount-snapshot
Either we can have a single
--mount
option and pass mount type encoded inside an argument.The text was updated successfully, but these errors were encountered: