Skip to content
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

Support for static filesystem volume(set) names? #5

Open
sysadmin1337 opened this issue Nov 12, 2016 · 3 comments
Open

Support for static filesystem volume(set) names? #5

sysadmin1337 opened this issue Nov 12, 2016 · 3 comments

Comments

@sysadmin1337
Copy link

Running fli create volumesetname volumename creates uuid paths inside the mounted zpool like /chq/fc3d6776-d76a-4d90-8ec3-89f348b3536d/ba603e7a-e529-4aa4-b126-7989432c3662.

For automation it's not suitable, because you have to manually change the docker volume path to point to a volume in the volumeset(I guess?). Is there going to be support for static volumeset/volume paths? Or am I confused as to how docker volumes should work together with fli?

@DasAng
Copy link

DasAng commented Nov 14, 2016

Yeah I think a best practice guide on how to mount docker volumes with fli could help

@pcgeek86
Copy link

Hello @sysadmin1337, we have a tool called fli-docker that enables you to inject volume paths into a Docker Compose.

You can also do a simple text replacement operation in your docker run -v <host>:<container> command, and inject the Volume mount point. A simple Python or Ruby wrapper would suffice, or even simply setting a Bash environment variable.

Here's an end-to-end Bash script that I wrote to demonstrate the core capabilities of Fli + FlockerHub. This should help push you along. 😄

https://gist.github.com/pcgeek86/79cbc230e0478eaf9ad5157867bd1f64

FYI, we'll write a blog post about this particular scenario on the ClusterHQ blog, and discuss your request.

I agree with you that we should make it easier to specify a custom mount point, but keep in mind that it must reside within a ZFS Pool.

Please continue to send feedback, as we continue to improve.

Cheers,
Trevor Sullivan
Developer Evangelist, ClusterHQ
https://clusterhq.com

@wallnerryan
Copy link
Contributor

@DasAng @sysadmin1337 https://github.com/ClusterHQ/fli-docker is what @pcgeek86 referenced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants