forked from mozilla/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
142 lines (126 loc) · 3.01 KB
/
docker-compose.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
133
134
135
136
137
138
139
140
141
142
version: '3.4'
services:
web:
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-dev.sh
env_file: .env
volumes:
- ./:/app:delegated
user: ${UID:-kitsune}
stdin_open: true
tty: true
depends_on:
- mariadb
- elasticsearch
- redis
ports:
- "8000:8000"
test:
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-unit-tests.sh
env_file: .env-test
volumes:
- ./:/app:delegated
user: ${UID:-kitsune}
depends_on:
- mariadb
- elasticsearch
- redis
test-js:
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-mocha-tests.sh
env_file: .env-test
volumes:
- ./:/app:delegated
user: ${UID:-kitsune}
test-image:
image: itsre/sumo-kitsune:full-no-locales-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-unit-tests.sh
env_file: .env-test
depends_on:
- mariadb
- elasticsearch
- redis
test-image-js:
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
command: ./bin/run-mocha-tests.sh
env_file: .env-test
lint-l10n:
image: itsre/sumo-kitsune:base-${GIT_COMMIT_SHORT:-latest}
command: dennis-cmd lint --errorsonly locale
env_file: .env-test
volumes:
- ./locale:/app/locale:delegated
# images
base:
build:
context: .
target: base
args:
- GIT_SHA
image: itsre/sumo-kitsune:base-${GIT_COMMIT_SHORT:-latest}
base-dev:
build:
context: .
target: base-dev
args:
- GIT_SHA
image: itsre/sumo-kitsune:base-dev-${GIT_COMMIT_SHORT:-latest}
node-dev:
build:
context: .
target: frontend-base
args:
- GIT_SHA
image: itsre/sumo-kitsune:node-dev-${GIT_COMMIT_SHORT:-latest}
staticfiles:
build:
context: .
target: staticfiles
args:
- GIT_SHA
image: itsre/sumo-kitsune:staticfiles-${GIT_COMMIT_SHORT:-latest}
locales:
build:
context: .
target: locales
args:
- GIT_SHA
- LOCALE_ENV
image: itsre/sumo-kitsune:locales-${GIT_COMMIT_SHORT:-latest}
full-no-locales:
build:
context: .
target: full-no-locales
args:
- GIT_SHA
- LOCALE_ENV
image: itsre/sumo-kitsune:full-no-locales-${GIT_COMMIT_SHORT:-latest}
full:
build:
context: .
target: full
args:
- GIT_SHA
- LOCALE_ENV
image: itsre/sumo-kitsune:full-${GIT_COMMIT_SHORT:-latest}
# EXTERNAL SERVICES
mariadb:
image: mariadb:10.0
environment:
- MYSQL_ROOT_PASSWORD=kitsune
- MYSQL_USER=kitsune
- MYSQL_PASSWORD=kitsune
- MYSQL_DATABASE=kitsune
entrypoint:
- docker-entrypoint.sh
- --character-set-server=utf8
- --collation-server=utf8_unicode_ci
volumes:
- mysqlvolume:/var/lib/mysql
elasticsearch:
image: elasticsearch:2.4
redis:
image: redis:3
volumes:
mysqlvolume: