mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 16:25:27 +08:00
qt 6.5.1 original
This commit is contained in:
29
mkspecs/features/data/testserver/Dockerfile
Normal file
29
mkspecs/features/data/testserver/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
# This Dockerfile is used to provision the shared scripts (e.g. startup.sh) and configurations. It
|
||||
# relies on the arguments passed by docker-compose file to build additional images for each service.
|
||||
# To lean more how it works, please check the topic "Use multi-stage builds".
|
||||
# https://docs.docker.com/develop/develop-images/multistage-build/
|
||||
|
||||
ARG provisioningImage
|
||||
FROM $provisioningImage as testserver_tier2
|
||||
|
||||
# Add and merge the testdata into service folder
|
||||
ARG serviceDir
|
||||
ARG shareDir=$serviceDir
|
||||
COPY $serviceDir $shareDir service/
|
||||
|
||||
# create the shared script of testserver
|
||||
RUN echo "#!/usr/bin/env bash\n" \
|
||||
"set -ex\n" \
|
||||
"for RUN_CMD; do \$RUN_CMD; done\n" \
|
||||
"service dbus restart\n" \
|
||||
"service avahi-daemon restart\n" \
|
||||
"sleep infinity\n" > startup.sh
|
||||
RUN chmod +x startup.sh
|
||||
|
||||
# rewrite the default configurations of avahi-daemon
|
||||
# Disable IPv6 of avahi-daemon to resolve the unstable connections on Windows
|
||||
ARG test_domain
|
||||
RUN sed -i -e "s,#domain-name=local,domain-name=${test_domain:-test-net.qt.local}," \
|
||||
-e "s,#publish-aaaa-on-ipv4=yes,publish-aaaa-on-ipv4=no," \
|
||||
-e "s,use-ipv6=yes,use-ipv6=no," \
|
||||
/etc/avahi/avahi-daemon.conf
|
38
mkspecs/features/data/testserver/docker-compose-common.yml
Normal file
38
mkspecs/features/data/testserver/docker-compose-common.yml
Normal file
@ -0,0 +1,38 @@
|
||||
version: '2.1'
|
||||
|
||||
# This is a template docker-compose file shared with all modules. It is based
|
||||
# on 'extending services' feature of compose file version 2.1.
|
||||
# See https://docs.docker.com/compose/extends/#extending-services for details.
|
||||
#
|
||||
# Example: testserver/docker-compose.yml
|
||||
# services:
|
||||
# foo:
|
||||
# extends:
|
||||
# file: ${SHARED_DATA}/docker-compose-common.yml
|
||||
# service: ${SHARED_SERVICE}
|
||||
# container_name: qt-test-server-foo
|
||||
# hostname: ${HOST_NAME:-foo}
|
||||
# build:
|
||||
# context: .
|
||||
# args:
|
||||
# provisioningImage: qt-test-server-foo:537fe302f61851d1663...
|
||||
# serviceDir: ./foo
|
||||
# command: service/foo.sh
|
||||
|
||||
x-services:
|
||||
&default-service
|
||||
domainname: ${TEST_DOMAIN}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ${SHARED_DATA}/Dockerfile
|
||||
args:
|
||||
test_domain: ${TEST_DOMAIN}
|
||||
entrypoint: ./startup.sh
|
||||
|
||||
services:
|
||||
bridge-network: *default-service
|
||||
host-network:
|
||||
<< : *default-service
|
||||
network_mode: "host"
|
||||
extra_hosts:
|
||||
- "qt-test-server.${TEST_DOMAIN}:${MACHINE_IP}"
|
Reference in New Issue
Block a user