dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
538 stars 29 forks source link

Provide a way to mount read-only snapshots via the API #612

Closed alaric-dotmesh closed 5 years ago

alaric-dotmesh commented 5 years ago

As a Dotscience Agent developer, I want a way to honour requests in task payloads to mount specific versions of datasets, so that I can actually provide the functionality offered by the ds run command...

Therefore, I need a way to ask Dotmesh to provide a read-only mount of a historic snapshot of a dot.

ACs

Implementation Notes

Perhaps an optional argument to Procure, rather than a new API?

binocarlos commented 5 years ago

@alaric-dotmesh there is a MountCommit RPC call that does this code - it takes the following struct:

args *struct{ FilesystemId, CommitId string }

and returns the mount path the snapshot was mounted to

alaric-dotmesh commented 5 years ago

Perfect! Thanks!