vagrant-service-manager icon indicating copy to clipboard operation
vagrant-service-manager copied to clipboard

Dedicated script should be called on the ADB/CDK VM to generate the TLS certificates

Open hferentschik opened this issue 8 years ago • 6 comments

Currently we have in docker.rb:

sudo rm /etc/docker/ca.pem && sudo systemctl restart docker

Which is from behind through the chest into the eye. This works, because the Docker service scripts check for the existence of ca.pem and then re-creates the certificates. At least this should be documented or even better docker.rb should call a dedicated properly named script. This script could also do the daemon restart.

hferentschik avatar Mar 14 '16 15:03 hferentschik

At least this should be documented or even better docker.rb should call a dedicated properly named script. This script could also do the daemon restart.

We have a counter issue filed in ADB repo https://github.com/projectatomic/adb-atomic-developer-bundle/issues/266. Idea is to configure the docker daemon only on unix socket (since the default TLS certs generated are invalid) and have daemon configured to run on TCP as well Unix socket when the box boots up (when it gets the private network IP).

The re-configuration of the docker daemon to run on TCP and Unix socket can either be done via a script in the box or via plugin itself.

navidshaikh avatar Mar 14 '16 15:03 navidshaikh

We have a counter issue filed in ADB repo

+1. This needs for sure improving.

hferentschik avatar Mar 14 '16 16:03 hferentschik

Agreed. sccli should be extended to manage docker. @praveenkumar

bexelbie avatar Mar 14 '16 21:03 bexelbie

@bexelbie +1, yes if we make those changes to KS file then we need to extend sccli to make sure docker daemon run on TCP as well.

praveenkumar avatar Mar 15 '16 08:03 praveenkumar

+1 Good to have this approach.

brgnepal avatar Mar 24 '16 09:03 brgnepal

@praveenkumar : ping

navidshaikh avatar May 16 '16 14:05 navidshaikh