mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-31 18:57:05 +08:00
Display the provisioned version of docker tool kits
For debug purpose, print the installed version of docker, docker-compose, and docker-engine. Because 'docker info' is related to the docker-engine, postpone calling the command until docker virtual machine has been created. Change-Id: I4c869b7122b831b7f22c9c3846ac9cbe47c3b355 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
@@ -42,11 +42,12 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubun
|
||||
sudo apt-get update
|
||||
sudo apt-get install docker-ce -y
|
||||
sudo usermod -a -G docker $USER
|
||||
sudo docker info
|
||||
sudo docker --version
|
||||
|
||||
# Download and install the docker-compose extension.
|
||||
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
sudo docker-compose --version
|
||||
|
||||
# Install Avahi to discover Docker containers in the test network
|
||||
sudo apt-get install avahi-daemon -y
|
||||
|
||||
@@ -58,6 +58,8 @@ else
|
||||
curl $url -o $target_file
|
||||
fi
|
||||
sudo installer -pkg $target_file -target /
|
||||
docker --version
|
||||
docker-compose --version
|
||||
|
||||
# Start testserver provisioning
|
||||
case ${BASH_SOURCE[0]} in
|
||||
|
||||
@@ -46,6 +46,9 @@ case $1 in
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
# Display system-wide information of docker-engine
|
||||
docker info
|
||||
|
||||
# Sort files by their SHA-1, and then return the accumulated result
|
||||
sha1tree () {
|
||||
# For example, macOS doesn't install sha1sum by default. In such case, it uses shasum instead.
|
||||
|
||||
Reference in New Issue
Block a user