-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.mdeprc.cjs
More file actions
38 lines (34 loc) · 809 Bytes
/
.mdeprc.cjs
File metadata and controls
38 lines (34 loc) · 809 Bytes
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
const uid = process.getuid();
module.exports = exports = {
node: "22",
test_framework: "../../../usr/local/bin/node --test --import @swc-node/register/esm-register",
tests: "__tests__/*.spec.ts",
auto_compose: true,
services: [],
in_one: true,
extras: {
tester: {
user: `${uid}:${uid}`,
environment: {
DB: '${DB}'
},
}
}
}
switch (process.env.DB) {
case 'cluster':
exports.services.push('redisCluster');
exports.extras['redis-cluster'] = {
healthcheck: {
test: "redis-cli -p 7000 cluster info | grep cluster_state:ok > /dev/null && exit 0 || exit 1",
interval: '1s',
timeout: '5s',
retries: 30,
}
}
break;
case 'sentinel':
default:
exports.services.push('redisSentinel');
break;
}