path: root/coin
diff options
authorDimitrios Apostolou <>2019-11-05 12:45:45 +0100
committerDimitrios Apostolou <>2019-11-14 08:46:18 +0100
commita270bcdb6beb34d7590378899805391cfcfe7091 (patch)
treee565b394b48729134e3404787719a8092e0d29d5 /coin
parentfafd3d655d4ebb303825cb40203ecf39f3b0e578 (diff)
Docker installation: do not depend on external repositories
Also updated the docker-compose binary to the latest one. Task-number: QTQAINFRA-3279 Change-Id: Ie09a772ca8247aa5f5bd6d36774b68b6bb846386 Reviewed-by: Tony Sarajärvi <>
Diffstat (limited to 'coin')
1 files changed, 28 insertions, 9 deletions
diff --git a/coin/provisioning/common/linux/ b/coin/provisioning/common/linux/
index 1d9e8419..127239d1 100755
--- a/coin/provisioning/common/linux/
+++ b/coin/provisioning/common/linux/
@@ -35,18 +35,37 @@
set -ex
-# Download and install the docker engine.
-sudo apt-get install curl -y
-curl -fsSL | sudo apt-key add -
-sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
-sudo apt-get update
-sudo apt-get install docker-ce -y
+. $(dirname "$0")/../../common/unix/
+echo '
+ f4c941807310e3fa470dddfb068d599174a3daec containerd.io_1.2.10-3_amd64.deb
+ ee640d9258fd4d3f4c7017ab2a71da63cbbead55 docker-ce_19.03.4~3-0~ubuntu-bionic_amd64.deb
+ 09402bf5dac40f0c50f1071b17f38f6584a42ad1 docker-ce-cli_19.03.4~3-0~ubuntu-bionic_amd64.deb
+' \
+ | xargs -n2 | while read sha f
+ DownloadURL $localRepo/$f $upstreamRepo/$f $sha
+sudo apt-get -y install ./*.deb ./docker-ce*.deb ./docker-ce-cli*.deb
+rm -f ./*.deb ./docker-ce*.deb ./docker-ce-cli*.deb
sudo usermod -a -G docker $USER
sudo docker info
-# Download and install the docker-compose extension.
-sudo curl -L$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
-sudo chmod +x /usr/local/bin/docker-compose
+# Download and install the docker-compose extension from
+f=docker-compose-$(uname -s)-$(uname -m)
+DownloadURL \
+ $localRepo/$f \
+$f \
+ cfb3439956216b1248308141f7193776fcf4b9c9b49cbbe2fb07885678e2bb8a
+sudo install -m 755 ./docker-compose* /usr/local/bin/docker-compose
+rm ./docker-compose*
# Install Avahi to discover Docker containers in the test network
sudo apt-get install avahi-daemon -y