Skip to content

Commit 48e4e5b

Browse files
committed
update dev environment with opensearch
1 parent ee89513 commit 48e4e5b

File tree

2 files changed

+74
-8
lines changed

2 files changed

+74
-8
lines changed

docker-compose-dev.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
x-elasticsearch-image: &elasticsearch-image
2-
docker-registry.wikimedia.org/releng/cirrus-elasticsearch:7.10.2-s0
2+
docker-registry.wikimedia.org/repos/search-platform/cirrussearch-opensearch-image:v1.3.20-12
33
x-memcached: &memcached-image
44
memcached:1.6.39
55
x-mysql-image: &mysql-image
@@ -10,6 +10,8 @@ x-redis-jobrunner: &redis-jobrunner-image
1010
ghcr.io/mardi4nfdi/redis-jobrunner-staging:latest
1111
x-wikibase: &wikibase-image
1212
ghcr.io/mardi4nfdi/wikibase-staging:latest
13+
x-wikibase-apache: &apache-image
14+
ghcr.io/mardi4nfdi/apache:1.46.3
1315
x-wdqs-image: &wdqs-image
1416
ghcr.io/wmde/wikibase/wdqs:dev-9186217118
1517
x-wdqs-frontend-image: &wdqs-frontend-image
@@ -49,13 +51,15 @@ volumes:
4951
wdqs-data:
5052

5153
services:
52-
wikibase:
53-
image: *wikibase-image
54-
container_name: mardi-wikibase
54+
apache:
55+
image: *apache-image
56+
container_name: apache-wikibase
5557
links:
5658
- mysql
59+
- wikibase
5760
depends_on:
5861
- mysql
62+
- wikibase
5963
ports:
6064
- "8080:80"
6165
restart: unless-stopped
@@ -64,6 +68,17 @@ services:
6468
interval: 30s
6569
timeout: 10s
6670
retries: 5
71+
environment:
72+
<<: *wikibase_variables
73+
74+
wikibase:
75+
image: *wikibase-image
76+
container_name: mardi-wikibase
77+
links:
78+
- mysql
79+
depends_on:
80+
- mysql
81+
restart: unless-stopped
6782
networks:
6883
default:
6984
aliases:
@@ -124,10 +139,12 @@ services:
124139
container_name: redis-jobrunner
125140
depends_on:
126141
- wikibase
127-
entrypoint:
142+
command:
128143
- php
129144
- /jobrunner/redisJobRunnerService
130145
- "--config-file=/jobrunner/config.json"
146+
volumes:
147+
- ./jobrunner/dev-config.json:/jobrunner/config.json:ro
131148
environment:
132149
<<: *wikibase_variables
133150

@@ -136,10 +153,12 @@ services:
136153
container_name: redis-rescheduler
137154
depends_on:
138155
- wikibase
139-
entrypoint:
156+
command:
140157
- php
141158
- /jobrunner/redisJobChronService
142159
- "--config-file=/jobrunner/config.json"
160+
volumes:
161+
- ./jobrunner/dev-config.json:/jobrunner/config.json:ro
143162
environment:
144163
<<: *wikibase_variables
145164

@@ -224,7 +243,7 @@ services:
224243
container_name: wikibase-setup
225244
restart: "no"
226245
depends_on:
227-
wikibase:
246+
apache:
228247
condition: service_healthy
229248
volumes:
230249
- ./dev:/setup-scripts
@@ -239,7 +258,7 @@ services:
239258
depends_on:
240259
mysql:
241260
condition: service_healthy
242-
wikibase:
261+
apache:
243262
condition: service_healthy
244263
volumes:
245264
- ./dev:/setup-scripts

jobrunner/dev-config.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"groups": {
3+
"basic": {
4+
"runners": 8,
5+
"include": [
6+
"*"
7+
],
8+
"exclude": [
9+
"DispatchChanges",
10+
"CreateProfilePages",
11+
"SetProfileType",
12+
"NormalizeDoi"
13+
],
14+
"low-priority": [
15+
"htmlCacheUpdate"
16+
]
17+
},
18+
"dispChanges": {
19+
"runners": 8,
20+
"include": [
21+
"DispatchChanges"
22+
],
23+
"low-priority": [
24+
"cirrusSearchElasticaWrite"
25+
]
26+
},
27+
"profiles": {
28+
"runners": 4,
29+
"include": [
30+
"CreateProfilePages",
31+
"SetProfileType",
32+
"OpenAlex",
33+
"NormalizeDoi"
34+
]
35+
}
36+
},
37+
"limits": {},
38+
"redis": {
39+
"aggregators": [
40+
"redis:6379"
41+
],
42+
"queues": [
43+
"redis:6379"
44+
]
45+
},
46+
"dispatcher": "/var/www/html/w/maintenance/run runJobs --type=%(type)x --maxtime=%(maxtime)x --memory-limit=%(maxmem)x --result=json --conf=/var/www/html/w/LocalSettings.php"
47+
}

0 commit comments

Comments
 (0)