Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

question: bosh-cli in mac-docker container - how to use mac's virtualbox? #439

Open
weberstephanhd opened this issue Sep 28, 2017 · 3 comments

Comments

@weberstephanhd
Copy link

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

@cppforlife
Copy link
Contributor

cppforlife commented Sep 28, 2017 via email

@simevo
Copy link

simevo commented Nov 30, 2017

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 ?

@weberstephanhd
Copy link
Author

Hi Simevo, I will check and give feedback soon. Many Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants