-
Notifications
You must be signed in to change notification settings - Fork 3
/
.mdeprc.js
41 lines (39 loc) · 984 Bytes
/
.mdeprc.js
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
/* eslint-disable no-template-curly-in-string */
import { userInfo } from 'node:os';
const { uid } = userInfo();
export default {
test_framework: 'c8 node --test',
tests: '__tests__/*.js',
auto_compose: true,
node: '20',
tester_flavour: 'chrome-tester',
services: [
'redisSentinel',
'redisCluster',
'rabbitmq',
'postgres',
'elasticsearch',
'cassandra',
'couchdb',
],
mutagenVolumeExternal: true,
mutagenVolumeName: 'mdep-src',
in_one: true,
extras: {
tester: {
shm_size: '256m',
environment: {
CHROME_PATH: '/usr/bin/chromium-browser',
DEBUG: "${DEBUG:-''}",
},
},
},
euser: 0,
tuser: uid,
arbitrary_exec: [
'apk add git',
process.env.flavour === 'http'
? ['/bin/sh', '-c', `addgroup $(getent passwd ${uid} | cut -d: -f1) node`] // child_process.exec
: ['addgroup', `$(getent passwd ${uid} | cut -d: -f1)`, 'node'], // docker exec /bin/sh -c "<command>"
],
};