-
Notifications
You must be signed in to change notification settings - Fork 23
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
external-media folder use from within a virtual machine #3
Comments
hello again, continuing to post my updates here from my process of learning about using docker to best deploy LibreTime in hopes that others may benefit. I've almost been able to successfully "cut out the middle man" by directly mounting a folder from the server barebone within libretime-core. The volume is successfully created and mounted, but remains "read-only" and I'm at a stage where I think posting an update is appropriate. :) If I can't resolve this then I'll have to abandon using the VM -- not the end of the world, and actually would simplify things, but the system would be a little less robust in that I'd no longer be able to simply restore to a stable clone. My updated
Note that the
I then use this volume within the
This works, but the drive is loaded as read-only, which of course won't do. I'm assuming that the "ro" at the end of the last line above, copied from the github issue, stands for "read-only," and so I need to figure out how to ditch it. Unfortunately my various attempts to do so have consistently caused permission errors upon creating |
Hi Ryan - I've already sent you a PM on Skype, however just posting a summary of comments/chat history here in the Issue so anyone else coming across the issue will also have a bit of context to the outcome...
In summary, use /etc/fstab on the parent host if possible - It's less moving parts for Docker to worry about also. |
many thanks ned. OK, I'm finally getting it that I should stop clinging to using VMs. My inexperience with docker has made me hesitant to go against the advice to never deploy directly in the barebone, but I see that the ability to commit docker containers to new images gives some ability to back them up just like how i used to clone containers. ...and there's still some isolation from the barebone OS just in case i crash the container. Today I picked Samba and got it up and running pretty easily on my debian server. it's sharing our media folder correctly in read only mode with the windows computer used during live shows in the studio. sweet! thanks again! |
Glad you got it running - Just a heads up, generally in a larger scale production env, you will still see something like ESXi used and docker running within VM's - This way you can use tooling like VMotion and/or Veeam to shift the VM's around (between your hypervisors) if you need to take down the physical infrastructure for maintenance etc... I realise in your environment it's probably overkill, so if barebones + docker gets you by fine and you're happy with your backup options, then I'd stick with it. I'm actually running our prod setup just in a lightweight Container OS on an ESXi VM (CoreOS) rather than a traditional more "fully fledged" OS inside a VM. |
I'm seeing errors upon trying to upload tracks to an instance I created within a virtual machine that attempts to store files on the base system (aka. barebone).
Contrasting my working local instance where docker is running directly within my laptop operating system, and this new instance on our radio server which runs within a virtual machine created with virt-manager, I first noticed a difference in ownership of the
/external-media
folder.On my working local:
vs. on the server where the linked folder is mounted via sshfs within the VM:
At first I wasn't able to change the folder owner:
And so from within the VM I then unmounted the sshfs mountpoint, but strangely didn't see changes immediately reflected within the docker container. I removed and created
libretime-core
and then could see changes reflected, and was able to change the folder owner.I'm currently thinking the cleanest way to use a volume on the "barebone" would be to use a volume driver, but I'm so new to docker that I may be completely wrong 😝 . I'll try this and report back.
thoughts? thanks!
The text was updated successfully, but these errors were encountered: