diff options
author | Ryan Chu <ryan.chu@qt.io> | 2019-01-28 00:00:38 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-02-02 12:23:18 +0000 |
commit | b4b2152dd3270e6fbdcd62c3861c22a77c704657 (patch) | |
tree | 291880983e87b56924db22c7128f71ec3a3f6326 /coin/provisioning/common | |
parent | 177df80f09f3a84af7d86390ae7160a64fad8b4c (diff) |
Start the docker machine and update with new TLS certificates
After the system reboots, the docker machine is created, but in a
stopped state. To handle the case that a developer may rerun the
provisioning scripts for the missed docker images, make sure the
docker machine is both started and running with new TLS certificates.
Change-Id: Ibdb58152cac860132a77d6d094f9bca20a5e95e8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'coin/provisioning/common')
-rwxr-xr-x | coin/provisioning/common/shared/testserver/docker_machine.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coin/provisioning/common/shared/testserver/docker_machine.sh b/coin/provisioning/common/shared/testserver/docker_machine.sh index 9c69faa9..8d791074 100755 --- a/coin/provisioning/common/shared/testserver/docker_machine.sh +++ b/coin/provisioning/common/shared/testserver/docker_machine.sh @@ -42,6 +42,9 @@ if [ -z $(docker-machine ls -q --filter "name=$TestMachine") ] then docker-machine create $@ $TestMachine docker-machine ip $TestMachine +else + # Otherwise, start the docker machine and update with new TLS certificates. + docker-machine start $TestMachine && docker-machine regenerate-certs -f $TestMachine fi # Switch the docker engine to $TestMachine |