-
Notifications
You must be signed in to change notification settings - Fork 1
/
actions-services.yml
132 lines (125 loc) · 3.76 KB
/
actions-services.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
x-db_healthcheck: &db_healthcheck
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
services:
db:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: test
MYSQL_USER: idpmgmt
MYSQL_PASSWORD: idpmgmt
<<: *db_healthcheck
zxcvbn:
image: wcjr/zxcvbn-api:1.1.0
ports:
- "3000"
app:
build: .
depends_on:
db:
condition: service_healthy
zxcvbn:
condition: service_started
broker:
condition: service_healthy
# ldapload:
# condition: service_started
environment:
MYSQL_HOST: db
MYSQL_DATABASE: test
MYSQL_USER: idpmgmt
MYSQL_PASSWORD: idpmgmt
ALERTS_EMAIL_ENABLED: "false"
ALERTS_EMAIL: [email protected]
ID_BROKER_baseUrl: http://broker
ID_BROKER_accessToken: abc123
ID_BROKER_assertValidBrokerIp: "false"
ID_BROKER_validIpRanges: 127.0.0.1/32,192.168.65.1/32
TEST_GOOGLE_PWSTORE_CONFIG_applicationName: idpGooglePwStoreTestsByCI
RECAPTCHA_REQUIRED: "false"
EMAIL_SERVICE_accessToken: fake
EMAIL_SERVICE_assertValidIp: "false"
EMAIL_SERVICE_baseUrl: fake
EMAIL_SERVICE_validIpRanges: 10.0.0.0/128
EMAILER_CLASS: tests\mock\emailer\FakeEmailer
AUTH_CLASS: tests\mock\auth\Component
PASSWORDSTORE_CLASS: tests\mock\passwordstore\Component
ZXCVBN_API_BASEURL: http://zxcvbn:3000
PASSWORD_RULE_minLength: 10
PASSWORD_RULE_maxLength: 255
PASSWORD_RULE_minScore: 2
working_dir: /data
command: /data/run-tests.sh
brokerDb:
image: mariadb:10
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: app
MYSQL_USER: user
MYSQL_PASSWORD: pass
<<: *db_healthcheck
broker:
image: silintl/idp-id-broker:6
depends_on:
brokerDb:
condition: service_healthy
volumes:
- ./dockerbuild/broker/run-broker.sh:/data/run-broker.sh
- ./dockerbuild/broker/m381901_235959_insert_test_data.php:/data/console/migrations/m381901_235959_insert_test_data.php
- ./dockerbuild/broker/User.php:/data/console/migrations/User.php
- ./dockerbuild/broker/Method.php:/data/console/migrations/Method.php
environment:
EMAIL_SERVICE_accessToken: fake
EMAIL_SERVICE_assertValidIp: "false"
EMAIL_SERVICE_baseUrl: fake
EMAIL_SERVICE_validIpRanges: 10.0.0.0/128
EMAILER_CLASS: \Sil\SilIdBroker\Behat\Context\fakes\FakeEmailer
IDP_NAME: idp1
MYSQL_HOST: brokerDb
MYSQL_DATABASE: app
MYSQL_USER: user
MYSQL_PASSWORD: pass
API_ACCESS_KEYS: abc123
HELP_CENTER_URL: https://example.com/#/help
PASSWORD_FORGOT_URL: https://example.com/#/forgot
PASSWORD_PROFILE_URL: https://example.com/#/profile
SUPPORT_EMAIL: [email protected]
EMAIL_SIGNATURE: Dummy Signature for Tests
APP_ENV: test
MFA_TOTP_apiBaseUrl: not_needed_here
MFA_TOTP_apiKey: not_needed_here
MFA_TOTP_apiSecret: not_needed_here
MFA_WEBAUTHN_apiBaseUrl: not_needed_here
MFA_WEBAUTHN_apiKey: not_needed_here
MFA_WEBAUTHN_apiSecret: not_needed_here
command: ./run-broker.sh
healthcheck:
test: nc -vz localhost 80
start_period: 1s
interval: 5s
timeout: 1s
retries: 30
ldap:
build: ./dockerbuild/ldap
environment:
DEBUG_LEVEL: 320
healthcheck:
test: nc -vz localhost 389
start_period: 1s
interval: 5s
timeout: 1s
retries: 90
ldapload:
build: ./dockerbuild/ldap
depends_on:
ldap:
condition: service_healthy
working_dir: /data
command: ./load_ldap.sh