qt5base-lts/tests/testserver/common
Ryan Chu 713f77176e Support multi-stage builds to provision the configurations and test data
In order to reuse the test server to the external modules, it is much
easier to share the common configurations (scripts) and test data via
Dockerfile. In addition, the external module can create more layers
depending on their needs. Therefore, supporting multi-stage builds is
needed. The disadvantage is that the docker-compose needs to re-build
the images every time. However, it is just a one-time effort. If the
Dockerfile doesn't get changed, the extra build time can be ignored.

Because of multi-stage builds, the test server will keep a Dockerfile at
least. Therefore, the volume sharing is no more needed. The test data of
a service can be added into the images by using COPY/ADD commands.

NOTE:
This patch relies on docker-compose v1.21.0 (docker-compose build now
supports the use of Dockerfile from outside the build context).

Change-Id: Ib3f6a5fcf6979732ae8a40a494a1360fca4ac7bf
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-04-25 15:32:57 +00:00
..
testdata Select single-name SSL certificate for test servers using host network 2019-01-28 14:03:34 +00:00
.gitattributes Docker-based test servers for network-related Qt autotests on Windows 2019-01-23 15:28:45 +00:00
ssl.sh Select single-name SSL certificate for test servers using host network 2019-01-28 14:03:34 +00:00
startup.sh Support multi-stage builds to provision the configurations and test data 2019-04-25 15:32:57 +00:00