aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2019-11-05 18:21:19 +0100
committerDimitrios Apostolou <jimis@qt.io>2020-01-13 19:44:45 +0100
commitfe4a724a3ede5383eab0df67d3e8826070ed2a5a (patch)
tree9d0df3a79b55bf1dc7bab024b772565dd789ca86 /coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile
parent302b228c7a726046f28f6899e5dcf60224d58707 (diff)
Use internal mirror repositories for Ubuntu docker containers
Depending on different external URLs makes our provisioning scripts flaky, because they can fail if any one of the external servers goes down. In this patch * the docker images qt_ubuntu_16.04 and qt_ubuntu_18.04 are being built first, they apt-get from the internal ubuntu mirror * all the existing docker images have been rebased to these two images, so they inherit this behavior * images that fetch files from the internet have been modified to not do the fetching themselves; insted URLs are fetched in advance using "DownloadURL" which accepts internal mirrored URLs, and the downloaded files are ADDed to the images with a local copy * previously existing git clone commands have been modified to fetch internally mirrored tarballs Task-number: QTQAINFRA-3343 Change-Id: Ic4640a4f7776e38623edba90f0eba7cb68631223 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile')
-rw-r--r--coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile b/coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile
new file mode 100644
index 00000000..f62a29c6
--- /dev/null
+++ b/coin/provisioning/common/shared/testserver/qt_ubuntu_18.04/Dockerfile
@@ -0,0 +1,5 @@
+FROM ubuntu:18.04
+ARG COIN_RUNS_IN_QT_COMPANY
+RUN test x"$COIN_RUNS_IN_QT_COMPANY" = xtrue \
+ && sed -i 's;\(archive\|security\)\.ubuntu\.com;repo-clones.ci.qt.io/apt-mirror/mirror;' /etc/apt/sources.list \
+ || echo "Internal package repository not found. Using public repositories."