-
Notifications
You must be signed in to change notification settings - Fork 51
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
How to mount filesystems #39
Comments
Yes, this is very possible. We’ve had this working in our embedded ansible server (Baker) for virtualbox and hyper-kit. Will create a demo Dockerfile with this working. |
The basic idea for virtualbox is up and running. Requires a few steps, with pointers to line in Dockerfile or init: https://github.com/ottomatica/slim-images/tree/master/alpine3.8-vbox-mount
Now, can access shared folder (set to / of host-system by virtualbox-provider).
Hyperkit, is going to be a bit more "gnarly". |
Ok, proof-of-concept for hyperkit shared folders for @blissdev: First, build this image in the slim-images repo.
The main difference is that you just add steps to mount the 9p network filesystem in the init script.
However, the real difference is how you run hyperkit (see run.sh). a) You need to pass a unix socket that will be used for 9p protocol. I've provided a proof of concept script that does this. It will boot up this image directly in hyperkit.
At some point, we can migrate some of this leg work into slim. |
@chrisparnin Wow, thank you so much for putting this together! I was initially thinking that hyperkit may provide a better experience, but from your perspective what do you think is the better option? Will hyperkit be lighter weight? Any advice? |
Honestly, this is probably something that would best be answered with longer term experimentation. My use cases tends to center around being able to quickly spin up VMs, doing some local testing for infrastructure scripts, and throwing them away. For this, VirtualBox, isn't so bad, and actually can be ready just as fast as hyperkit. Hyperkit might be better for compute heavy tasks, but it is also pretty rough around the edges when it comes to other features. |
Guess I'll have to experiment, thanks again! :) |
Slim will now automatically mount |
Closing issue since we now support sync by default. Can revisit any problems with new issue. Thanks! |
Are there any guides on usage especially regarding mounts? I'm interested in setting up a development environment using slim and hyperkit, but I need to mount my code in a performant manner. Any other tips or writeups out there? This may be the wrong place to ask, feel free to point me in a different direction.
The text was updated successfully, but these errors were encountered: