mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user