-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (27 loc) · 1.31 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
# use with running services
debug-frontend:
docker-compose exec frontend bash
# use with running services
debug-backend:
docker-compose exec backend bash
# use when for e.g. configs in our own frontend repo are changed
# GITCACHE= trick makes git clone step run without cache. See: https://stackoverflow.com/a/49772666
# if no cache is want for every step. Use `--no-cache` flag instead of `--build-arg gitcache`
rebuild-frontend:
docker-compose build --build-arg GITCACHE=$$(date +%s) frontend
rebuild-backend:
docker-compose build --build-arg GITCACHE=$$(date +%s) backend
rebuild-korp: rebuild-frontend rebuild-backend
# use these after rebuild
update-frontend-container:
docker-compose up -d frontend
update-backend-container:
docker-compose up -d backend
decompress-toy-corpus:
./volume-utils.py decompress
# cwb version change might require re-encoding of .vrt files in docker volume
# This command clears corpora and registry files inside the docker volume and create new ones from the
# .vrt files (also inside volume)
encode-wolfart-ahenakew:
./crk_WolfartAhenakew_encode.sh wolfart_ahenakew "Plains Cree: Wolfart-Ahenakew Texts" $$(date +"%Y-%m-%d")
.PHONY: debug-frontend debug-backend decompress-toy-corpus encode-wolfart-ahenakew rebuild-frontend rebuild-backend update-frontend-container update-backend-container