-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
429 lines (329 loc) · 22.5 KB
/
Makefile
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
.PHONY: test
start-demo:
mkdir -p layman_data deps/qgis/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate qgis geoserver redis layman celery_worker flower timgen layman_client nginx
start-demo-full:
mkdir -p layman_data deps/qgis/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate qgis geoserver redis layman celery_worker flower timgen layman_client micka nginx
start-demo-only:
mkdir -p layman_data deps/qgis/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate --no-deps layman celery_worker flower timgen layman_client nginx
start-demo-full-with-optional-deps:
mkdir -p layman_data deps/qgis/data deps/wagtail/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate
stop-demo:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml stop
build-demo:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
upgrade-demo:
mkdir -p layman_data deps/qgis/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate --no-deps qgis geoserver redis timgen layman_client nginx
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps layman bash -c "cd src && python3 layman_flush_redis.py && python3 wait_for_deps.py && python3 standalone_upgrade.py"
upgrade-demo-full:
mkdir -p layman_data deps/qgis/data
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml build layman layman_client timgen
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d postgresql
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps -u root layman bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml up -d --force-recreate --no-deps qgis geoserver redis timgen layman_client micka nginx
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps layman bash -c "cd src && python3 layman_flush_redis.py && python3 wait_for_deps.py && python3 standalone_upgrade.py"
upgrade-after-timeout:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm --no-deps layman bash -c "cd src && python3 layman_flush_redis.py && python3 wait_for_deps.py && python3 standalone_upgrade.py"
deps-start:
docker compose -f docker-compose.deps.yml up --force-recreate -d
deps-stop:
docker compose -f docker-compose.deps.yml stop
start-dev:
mkdir -p layman_data layman_data_test tmp deps/qgis/data deps/wagtail/data
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps -u root layman_dev bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate -d
stop-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml stop
start-dev-only:
mkdir -p layman_data layman_data_test tmp deps/qgis/data
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv layman_dev celery_worker_dev flower timgen layman_client
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps -u root layman_dev bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d layman_dev celery_worker_dev flower timgen layman_client
stop-dev-only:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml stop layman_dev celery_worker_dev flower timgen layman_client
restart-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate --no-deps -d layman_dev celery_worker_dev
rebuild-and-restart-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_dev
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate --no-deps -d layman_dev
restart-celery-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv layman_client
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv flower
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv celery_worker_dev
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml rm -fsv celery_worker_test
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv layman_dev
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml rm -fsv redis
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --no-deps -d redis
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --no-deps -d layman_dev
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --no-deps -d celery_worker_dev
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up --no-deps -d celery_worker_test
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --no-deps -d flower
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --no-deps -d layman_client
upgrade-dev:
mkdir -p layman_data layman_data_test tmp deps/qgis/data
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps -u root layman_dev bash -c "cd src && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d timgen layman_client qgis nginx-qgis geoserver redis micka
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps layman_dev bash -c "cd src && python3 layman_flush_redis.py && python3 wait_for_deps.py && python3 standalone_upgrade.py"
prepare-dirs:
mkdir -p layman_data layman_data_test tmp deps/qgis/data deps/wagtail/data
build-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build --force-rm layman_dev
rebuild-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build --no-cache --force-rm layman_dev
bash:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm layman_dev bash
refresh-doc-metadata-xpath:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm layman_dev bash -c "cd src && python3 refresh_doc_metadata_xpath.py"
bash-root:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm -u root layman_dev bash
bash-exec:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec layman_dev bash
bash-demo:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm layman bash
bash-demo-exec:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml exec layman bash
bash-demo-root:
docker compose -f docker-compose.deps.demo.yml -f docker-compose.demo.yml run --rm -u root layman bash
clear-data-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm layman_dev bash -c "python3 src/clear_layman_data.py"
reset-data-directories:
docker compose -f docker-compose.deps.yml rm -fsv
docker volume rm layman_redis-data || true
sudo rm -rf layman_data layman_data_test deps/*/data
mkdir -p layman_data layman_data_test tmp deps/qgis/data deps/wagtail/data
clear-python-cache-dev:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps layman_dev bash /code/src/clear-python-cache.sh
timgen-build:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build timgen
timgen-restart:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build timgen
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate --no-deps -d timgen
timgen-bash:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm timgen sh
timgen-bash-root:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run -u root --rm timgen sh
timgen-bash-exec:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec timgen sh
timgen-bash-exec-root:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec -u root timgen sh
client-build:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_client
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build layman_client_test
client-restart:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_client
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate --no-deps -d layman_client
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up --force-recreate --no-deps -d layman_client_test
client-bash:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm layman_client sh
client-bash-root:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm -u root layman_client sh
client-bash-exec:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec layman_client sh
client-bash-exec-root:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec -u root layman_client sh
celery-worker-test-bash:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm celery_worker_test bash
test:
mkdir -p tmp
if [ "$$(docker images -q layman_dev 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_dev ; \
fi;
if [ "$$(docker images -q timgen 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build timgen ; \
fi;
if [ "$$(docker images -q layman_client_test 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build layman_client_test ; \
fi;
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml rm -f layman_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "bash ensure-test-data.sh && python3 src/assert_db.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps -u root layman_test bash -c "cd src && python3 -B drop_layman_role_service_schema.py && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up --force-recreate --no-deps -d celery_worker_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --name layman_test_run_1 layman_test
test-fast:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps -u root layman_test bash -c "cd src && python3 -B drop_layman_role_service_schema.py && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps --name layman_test_run_1 layman_test
test-separated:
mkdir -p tmp
if [ "$$(docker images -q layman_dev 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_dev ; \
fi;
if [ "$$(docker images -q timgen 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build timgen ; \
fi;
if [ "$$(docker images -q layman_client_test 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build layman_client_test ; \
fi;
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml rm -f layman_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "bash ensure-test-data.sh && python3 src/assert_db.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps -u root layman_test bash -c "cd src && python3 -B drop_layman_role_service_schema.py && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up --force-recreate --no-deps -d celery_worker_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --name layman_test_run_1 -e "TEST_TYPE=$(test_type)" layman_test bash -c "bash test_separated.sh $(max_fail)"
test-separated-fast:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps -u root layman_test bash -c "cd src && python3 -B drop_layman_role_service_schema.py && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps --name layman_test_run_1 -e "TEST_TYPE=$(test_type)" layman_test bash -c "bash test_separated.sh $(max_fail)"
test-static:
mkdir -p tmp
if [ "$$(docker images -q layman_dev 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build layman_dev ; \
fi;
if [ "$$(docker images -q timgen 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build timgen ; \
fi;
if [ "$$(docker images -q layman_client_test 2> /dev/null)" = "" ]; then \
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml build layman_client_test ; \
fi;
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml rm -f layman_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "bash ensure-test-data.sh && python3 src/assert_db.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps -u root layman_test bash -c "cd src && python3 -B drop_layman_role_service_schema.py && python3 -B setup_geoserver.py"
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml up --force-recreate --no-deps -d celery_worker_test
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --name layman_test_run_1 layman_test bash -c "bash test_static.sh"
test-bash:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm layman_test bash
lint:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "pylint -f colorized -j 2 -r y --disable=duplicate-except --disable=duplicate-code --disable=no-name-in-module --disable=too-many-lines --disable=line-too-long --disable=redefined-outer-name --disable=c-extension-no-member --disable=import-outside-toplevel --disable=too-many-locals --disable=redefined-builtin --disable=too-many-arguments --disable=wrong-import-position --disable=too-many-statements --disable=too-many-branches --max-line-length=127 ./src ./test_tools ./tests && flake8 --count --select=E9,F63,F7,F82 --show-source --statistics ./src ./test_tools ./tests && pycodestyle --count --statistics --ignore=E402,E501,W503 ./src ./test_tools ./tests"
lint-verbose:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "pylint -f colorized -r y ./src ./test_tools ./tests"
lint-fix:
docker compose -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test autopep8 --recursive --in-place --aggressive --aggressive --exit-code --ignore=E402,E501,W503 ./src ./test_tools ./tests
postgresql-psql:
docker compose -f docker-compose.deps.yml run -e PGPASSWORD=docker --entrypoint "psql -U docker -p 5432 -h postgresql gis" --rm postgresql
postgresql-psql-test:
docker compose -f docker-compose.deps.yml run -e PGPASSWORD=docker --entrypoint "psql -U docker -p 5432 -h postgresql layman_test" --rm postgresql
postgresql-bash-exec:
docker compose -f docker-compose.deps.yml exec -e PGPASSWORD=docker postgresql "bash"
redis-cli-db:
docker compose -f docker-compose.deps.yml exec redis redis-cli -h redis -p 6379 -n 0
redis-cli-test-db:
docker compose -f docker-compose.deps.yml exec redis redis-cli -h redis -p 6379 -n 15
redis-cli-client-dev-db:
docker compose -f docker-compose.deps.yml exec redis redis-cli -h redis -p 6379 -n 1
redis-cli-client-test-db:
docker compose -f docker-compose.deps.yml exec redis redis-cli -h redis -p 6379 -n 13
redis-cli-client-standalone-db:
docker compose -f docker-compose.deps.yml exec redis redis-cli -h redis -p 6379 -n 14
geoserver-restart:
docker compose -f docker-compose.deps.yml rm -fsv geoserver
docker compose -f docker-compose.deps.yml up --no-deps -d geoserver
geoserver-bash:
docker compose -f docker-compose.deps.yml run --rm --no-deps geoserver bash
geoserver-exec:
docker compose -f docker-compose.deps.yml exec geoserver bash
geoserver-ensure-authn:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up -d postgresql
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm --no-deps -u root layman_dev bash -c "cd src && python3 -B setup_geoserver.py"
get-current-user:
curl -H "Authorization: Bearer ..." http://localhost:8000/rest/current-user
wagtail-build:
docker compose -f docker-compose.deps.yml build wagtail
wagtail-bash:
docker compose -f docker-compose.deps.yml run --rm --entrypoint="bash" wagtail
wagtail-exec:
docker compose -f docker-compose.deps.yml exec wagtail bash
wagtail-restart:
mkdir -p deps/wagtail/data
docker compose -f docker-compose.deps.yml up --force-recreate --no-deps -d wagtail
wagtail-stop:
docker compose -f docker-compose.deps.yml stop wagtail
wagtail-reset-datadir:
mkdir -p deps/wagtail/data
rm -rf deps/wagtail/data/*
micka-restart:
docker compose -f docker-compose.deps.yml up --force-recreate --no-deps -d micka
micka-restart-demo:
docker compose -f docker-compose.deps.demo.yml up --force-recreate --no-deps -d micka
micka-bash:
docker compose -f docker-compose.deps.yml exec micka bash
micka-bash-demo:
docker compose -f docker-compose.deps.demo.yml run --rm --no-deps micka bash
micka-bash-exec-demo:
docker compose -f docker-compose.deps.demo.yml exec micka bash
micka-build:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build micka
micka-logs:
mkdir -p deps/micka/log/micka
mkdir -p deps/micka/log/nginx
rm -rf deps/micka/log/micka/*
rm -rf deps/micka/log/nginx/*
docker cp micka:/var/www/html/Micka/php/log/. deps/micka/log/micka
docker cp micka:/var/log/nginx/. deps/micka/log/nginx
nginx-bash:
docker compose -f docker-compose.demo.yml -f docker-compose.deps.demo.yml run --rm --no-deps nginx sh
nginx-bash-exec:
docker compose -f docker-compose.demo.yml -f docker-compose.deps.demo.yml exec nginx sh
nginx-restart:
docker compose -f docker-compose.demo.yml -f docker-compose.deps.demo.yml up --force-recreate --no-deps -d nginx
qgis-build:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml build nginx-qgis qgis
qgis-restart:
mkdir -p deps/qgis/data
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml up --force-recreate --no-deps -d nginx-qgis qgis
qgis-stop:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml stop nginx-qgis qgis
qgis-reset-datadir:
mkdir -p deps/qgis/data
rm -rf deps/qgis/data/*
qgis-bash:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml run --rm qgis bash
qgis-bash-exec:
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec qgis bash
qgis-bash-exec-root :
docker compose -f docker-compose.deps.yml -f docker-compose.dev.yml exec -u root qgis bash
stop-all-docker-containers:
docker stop $$(docker ps -q)
remove-all-docker-containers:
docker rm $$(docker ps -aq)
stop-and-remove-all-docker-containers:
docker stop $$(docker ps -q)
docker rm $$(docker ps -aq)
remark:
remark --frail *.md */*.md */*/*.md
github-purge-cache:
if ! [ -f tmp/github-purge.sh ] ; then \
curl -o tmp/github-purge.sh -LO https://raw.githubusercontent.com/mpyw/hub-purge/master/hub-purge.sh ; \
fi
chmod +x tmp/github-purge.sh
./tmp/github-purge.sh ${ARGS}
push-layman-dev-image:
docker tag layman_dev layermanager/layman:dev-latest
docker push layermanager/layman:dev-latest
push-client-image:
docker tag layman_client layermanager/layman:client-latest
docker push layermanager/layman:client-latest
push-timgen-image:
docker tag timgen layermanager/layman:timgen-latest
docker push layermanager/layman:timgen-latest
pull-dev-images:
docker pull layermanager/layman:dev-latest
docker tag layermanager/layman:dev-latest layman_dev
docker pull layermanager/layman:client-latest
docker tag layermanager/layman:client-latest layman_client
docker tag layermanager/layman:client-latest layman_client_test
docker pull layermanager/layman:timgen-latest
docker tag layermanager/layman:timgen-latest timgen
render-puml-images:
docker run --rm -it -u $(UID_GID) -v $$(pwd):/src plantuml/plantuml -v /src/**/*.puml