Open tailhook opened 8 years ago
Thanks, this is awesome!
Should we change ownership while copying seed data, like in !Shapshot ?
I think the point of this directory, at least in my use case, is to preserve everything. I can't think of a case where the owner or group would need to change. Can you explain?
Do we need a command to initialize the volume?
I don't think so. My problem with a command for this particular volume is that volumes are all mounted when a command is run, and not when the container is built. Can you explain this too? What use case would that be useful for?
Thanks again, you rock!
Could it be possible to use tarfile as the seed? Since the files are going to be copied anyway, I think it makes sense...
Well, it's an interesting idea but I have gut feeling that we can open a can of worms by allowing that. I.e. there are an indefinite number of ways you might want to initialize directory in a system.
I mean there is init-command
where you can use any script to initialize volume. Do you have any specific issue that stops you from using init-command
?
I mean there is init-command where you can use any script to initialize volume. Do you have any specific issue that stops you from using init-command?
Seems init-command
is executed inside the container and not from the host system, and in my container I don't have a sh
or tar
binaries, just only Node.js binary, so I can't be able to decompress it from inside. I need to have the volume initialized and ready to use directly from the host system.
You can create different container with all needed programs to execute init-command
command.
Motivation
Sometimes you want to have some writable volume, which is not a
!Tmpfs
(e.g. it's too large, or must be shared between containers, or must be shared between restarts), but you don't care where it is, and don't want to clutter working directorySolution
/work/.vagga/.volumes/data
is created (and seed is copied) when the container is run the first time.seed
can also refer to the same directory name (which will be copied and then shadowed by mount point)override-persistent-volumes: { data: /volumes/large-storage/mydata }
vagga _clean --volumes
. All volumes are removed regardless of whether they are used by any container. Overridden volumes are removed too, but in the case at the moment of running commandoverride-persistent-volumes
setting is changed there is no way to find old volume settings.name
Questions
Should we change ownership while copying seed data, like in
!Shapshot
?Do we need a command to initialize the volume?
Notes
This is inspired by #201
Check list
seed
supportvagga _clean --volumes
(by the wayvagga _clean --everything
works fine)!Persistent name
shortcut syntax