forked from desec-io/desec-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test-e2e2.yml
97 lines (90 loc) · 3.09 KB
/
docker-compose.test-e2e2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# mostly extending from main .yml
services:
www:
environment:
- DESECSTACK_E2E_TEST=TRUE # increase abuse limits and such
volumes:
- autocert:/autocert/
api:
environment:
- DESECSTACK_E2E_TEST=TRUE # increase abuse limits and such
# faketime setup
- LD_PRELOAD=/lib/libfaketime.so
- FAKETIME_TIMESTAMP_FILE=/etc/faketime/faketime.rc
- FAKETIME_NO_CACHE=1
volumes:
- faketime:/etc/faketime/:ro
celery-email:
environment:
- DESECSTACK_E2E_TEST=TRUE # increase abuse limits and such
# faketime setup
- LD_PRELOAD=/lib/libfaketime.so
- FAKETIME_TIMESTAMP_FILE=/etc/faketime/faketime.rc
- FAKETIME_NO_CACHE=1
volumes:
- faketime:/etc/faketime/:ro
nslord:
networks:
front:
ipv4_address: ${DESECSTACK_IPV4_REAR_PREFIX16}.0.129 # make available for test-e2e
environment:
- DESECSTACK_NSLORD_CACHE_TTL=0
# faketime setup
- LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
- FAKETIME_TIMESTAMP_FILE=/etc/faketime/faketime.rc
- FAKETIME_NO_CACHE=1
ports:
- "5311:53"
- "5311:53/udp"
volumes:
- faketime:/etc/faketime/:ro
nsmaster:
networks:
front:
ipv4_address: ${DESECSTACK_IPV4_REAR_PREFIX16}.0.130 # make available for test-e2e
test-e2e2:
build: test/e2e2
restart: "no"
environment:
- DESECSTACK_DOMAIN
- DESECSTACK_NS
- DESECSTACK_IPV4_REAR_PREFIX16
- DESECSTACK_IPV6_SUBNET
- DESECSTACK_IPV6_ADDRESS
- DESECSTACK_NSLORD_DEFAULT_TTL
- DESECSTACK_MINIMUM_TTL_DEFAULT
- DESECSTACK_NSMASTER_TSIGKEY
- DESECSTACK_E2E2_SECONDARY_NS=${DESECSTACK_IPV4_REAR_PREFIX16}.0.130
# faketime setup
- LD_PRELOAD=/lib/libfaketime.so
- FAKETIME_TIMESTAMP_FILE=/etc/faketime/faketime.rc
- FAKETIME_NO_CACHE=1
volumes:
- autocert:/autocert/:ro
- faketime:/etc/faketime/:rw
mac_address: 06:42:ac:10:00:7f
depends_on:
- www
- nslord
- nsmaster
networks:
front:
ipv4_address: ${DESECSTACK_IPV4_REAR_PREFIX16}.0.127
extra_hosts:
- "checkipv4.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "checkipv6.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV6_ADDRESS}"
- "checkip.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "desec.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "update6.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV6_ADDRESS}"
- "update.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "www.dedyn.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "www.desec.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
- "get.desec.${DESECSTACK_DOMAIN}:${DESECSTACK_IPV4_REAR_PREFIX16}.0.128"
libfaketime:
# trajano/alpine-libfaketime is incompatible and stale; its libfaketime
# version is incompatible with Python 3.11's time.sleep(). Rebuilding helps.
build: https://github.com/peterthomassen/alpine-libfaketime.git#patch-1
volumes:
autocert:
faketime: