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:
Ryan Chu
2019-01-15 10:37:06 +01:00
committed by Liang Qi
parent b97e448ba4
commit ab3e34827a
3 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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.