You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
I'm trying to setup a development environment based on docker for our developers. Currently most of them are using windows.
I hope to use boot2docker with a persistent folder within the vm, I've created following script to achieve this.
Developers just have to install boot2docker and use the gist by running this command to get started: curl https://gist.githubusercontent.com/so0k/d4f5e485a81ca5768643/raw -o setup.sh \ && chmod +x setup.sh
followed by
.\setup.sh
are there any comments/concerns or advise to do this in a better way? I do not want to use a custom boot2docker.iso with VBox guest additions to ensure it's easy to keep upgrading in the future.
For windows, the below gist will mount G drive to the samba share, I imagine using robocopy mirroring to keep a local source code directory synchronized, could be added to task runners such as grunt
One concern I've seen raised by others is the maximum image size for the boot2docker-vm. as suggested, additional vhd's or modified vbox config file might get around that.
Thank you for that, for now I'm not running into space issues.
I realized that my scripts should use the /opt/ directory - I will update them at some point.
For now, I've added a powershell script that uses robocopy to sync with the samba share, then uses Posh-SSH to stop/remove/rebuild/start all containers.
the script is here, but it depends on other scripts within the project directory (also publicly shared on github)
Activity
so0k commentedon Aug 8, 2014
For windows, the below gist will mount G drive to the samba share, I imagine using robocopy mirroring to keep a local source code directory synchronized, could be added to task runners such as grunt
https://gist.github.com/so0k/708eeaf5a9382db842eb
EDIT: I've replaced this with a powershell build script that not only synchronizes but also uses SSH to rebuild the containers
SvenDowideit commentedon Aug 8, 2014
nice. This is a very good approach. in 1.3.0, I'll be working on adding more automation for sharing - see boot2docker/boot2docker-cli#202 -
You're right though, I'll have to look at bringing what you've done into the boot2docker-cli too :)
so0k commentedon Aug 8, 2014
One concern I've seen raised by others is the maximum image size for the boot2docker-vm. as suggested, additional vhd's or modified vbox config file might get around that.
SvenDowideit commentedon Aug 11, 2014
the disk size can be set from both the commandline when you're init-ing, and from the config file - will that help?
so0k commentedon Aug 22, 2014
Thank you for that, for now I'm not running into space issues.
I realized that my scripts should use the
/opt/directory - I will update them at some point.For now, I've added a powershell script that uses robocopy to sync with the samba share, then uses
Posh-SSH to stop/remove/rebuild/start all containers.
the script is here, but it depends on other scripts within the project directory (also publicly shared on github)
igorgatis commentedon Jul 9, 2018
As of 2018, what's the proper way of sharing docker volumes using samba in boot2docker?