[Container-tools] Recommendations for bootstrapping a local k8s cluster?

Nick Coghlan ncoghlan at gmail.com
Wed May 27 03:13:59 UTC 2015


On 26 May 2015 at 23:27, Aaron Weitekamp <aweiteka at redhat.com> wrote:
> Top-posting since I'm not following all of this thread.
>
> omv breaks the typical Vagrant model in that I can't have a different Vagrantfile per project that each do different things. I have to keep changing my omv.yaml file. So I *must* run vagrant from the omv dir to get all of its functionality. This also means the common "rsync from current working directory" model has to change. It's a bit awkward and I feel like I'm always "managing" my dev environment.
>
> As I work to containerize my desktop I really like the "run from current working directory" model where the container bindmounts whatever git repo I'm working in. This fits with Vagrant and containers and I think it can work with omv as well. It's a pattern that is beginning to emerge with development environment containers.
>
> * super-priv container with git, ansible and omv (not vagrant)
> * rely on host-installed vagrant
> * each development project repo has a customized omv.yaml file for that project
> * bindmount `pwd` into container

Aye, this sounds plausible to me, especially in combination with an
activation script in the root directory of the git repo that
bootstraps the appropriate container.

It would be nice to find a way to rely on host-installed ansible and
git as well, though. While vagrant & dependencies were the real
monster in terms of container image size (around 500 MB including
dependencies), ansible is fairly heavy in its own right (around 100 MB
with dependencies), and git's dependencies add up to a fair bit as
well. Getting those into a shared layer would mitigate the per-project
impact, but we'll be assuming at least git support on the host to
clone the project repo in the first place. I guess
ansible-in-a-Docker-image-layer would reduce the cross-platform
bootstrapping steps for Windows and Mac OS X.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia




More information about the Container-tools mailing list