-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
60 lines (54 loc) · 1.22 KB
/
docker-compose.yaml
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
version: '3.7'
services:
base:
image: base
test: &test
image: base
working_dir: /app
volumes:
- ./src:/app/src
- ./tests:/app/tests
- ./scripts:/app/scripts
- ./package.json:/app/package.json
- ./tsconfig.json:/app/tsconfig.json
command: |
sh -c '
./scripts/wait_es.sh es6:9200;
npm run test
'
depends_on:
- es6
test-integ:
<<: *test
command: |
sh -c "
./scripts/wait_es.sh es6:9200
if [[ ! -z $${TEST} ]]; then
npm run test:one -- $${TEST};
else
npm run test:integ
fi;
"
test-unit:
<<: *test
command: |
sh -c "
if [[ ! -z $${TEST} ]]; then
npm run test:one -- $${TEST};
else
npm run test:unit
fi;
"
es6:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.6
ports:
- 9200:9200
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
XPACK_SECURITY_ENABLED: "false"
discovery.type: single-node
http.host: "0.0.0.0"
http.port: "9200"
transport.tcp.port: "9300"
bootstrap.memory_lock: "true"
network.host: "_site_"