-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
44 lines (27 loc) · 1.09 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
DOCKER_COMPOSES=-f docker-compose.yml
DEV_SERVICES=acc-text-api gf reaction-api reaction-mongo postgres hydra-migrate hydra identity acc-text-front-end datomic-transactor
create-networks:
docker network create reaction.localhost || true
remove-networks:
docker network rm reaction.localhost
prepare-plugin:
(cd reaction-admin/imports/plugins/custom/ && (test -e reaction-acc-text-import || git clone git@github.com:tokenmill/reaction-acc-text-import.git) && (cd reaction-acc-text-import && git pull origin master))
prepare-data:
sh data/prepare-data.sh
.init:
git submodule update --init --recursive
touch .init
init: .init
pull-submodules:
(git submodule update --remote && git pull --recurse-submodules)
pull-latest: pull-submodules
(cd accelerated-text && git reset --hard && git pull origin master)
build: prepare-plugin
docker-compose $(DOCKER_COMPOSES) build
run: init pull-submodules pull-latest build
docker-compose $(DOCKER_COMPOSES) up
run-dev: init build
docker-compose $(DOCKER_COMPOSES) up $(DEV_SERVICES)
stop:
docker-compose $(DOCKER_COMPOSES) down
clean: remove-networks