question: bosh-cli in mac-docker container - how to use mac's virtualbox?
Hi,
on my mac I use a cute docker container with an image that has all needful tools installed, like ruby, python, go, ... OS-cli, AWS-cli, BOSH-cli, CF-cli ... you name it. The idea is NOT to install bosh-cli and all other tools on the mac but use the bosh-cli which comes with all other tools in the docker container. That works perfectly for working with all our 'real' bosh instances, iaas, CF ...
How can I achieve that setting up bosh-lite via bosh create-env .. from inside my toolbox docker container creates and uses a bosh-lite vm in the virtualbox which runs on the same host like docker .. my mac.
Did anybody try that so far? Any plans to have bosh-lite for docker? Just saw https://hub.docker.com/r/bosh/bosh-lite/tags/ but that looks deprecated.
Many thanks, Stephan
you can use docker/cpi.yml (ops file) from bosh-deployment to use your docker for mac installation instead of having a dedicated virtualbox vm. see example here: https://github.com/cloudfoundry/bosh-deployment/blob/master/test.sh#L460
On Thu, Sep 28, 2017 at 3:36 PM, Stephan Weber [email protected] wrote:
Hi,
on my mac I use a cute docker container with an image that has all needful tools installed, like ruby, python, go, ... OS-cli, AWS-cli, BOSH-cli, CF-cli ... you name it. The idea is NOT to install bosh-cli and all other tools on the mac but use the bosh-cli which comes with all other tools in the docker container. That works perfectly for working with all our 'real' bosh instances, iaas, CF ...
How can I achieve that setting up bosh-lite via bosh create-env .. from inside my toolbox docker container creates and uses a bosh-lite vm in the virtualbox which runs on the same host like docker .. my mac.
Did anybody try that so far? Any plans to have bosh-lite for docker? Just saw https://hub.docker.com/r/bosh/bosh-lite/tags/ but that looks deprecated.
Many thanks, Stephan
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cloudfoundry/bosh-lite/issues/439, or mute the thread https://github.com/notifications/unsubscribe-auth/AALV902uko4lJ0XbtL5jNmmmahNCSm_Vks5snB-LgaJpZM4Pn-pG .
for the record, the example is now here: https://github.com/cloudfoundry/bosh-deployment/blob/master/tests/run-checks.sh#L462 i.e.:
echo "- Docker via UNIX sock"
bosh create-env bosh.yml \
-o docker/cpi.yml \
-o docker/unix-sock.yml \
-o jumpbox-user.yml \
--state=$tmp_file \
--vars-store $(mktemp ${tmp_file}.XXXXXX) \
-v director_name=docker \
-v internal_cidr=10.245.0.0/16 \
-v internal_gw=10.245.0.1 \
-v internal_ip=10.245.0.10 \
-v docker_host=unix:///var/run/docker.sock \
-v network=net3
@weberstephanhd, did it work for you ?
Hi Simevo, I will check and give feedback soon. Many Thanks!