-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 1.13 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
DATA_DIR = data
_volumes: ## create volumes directories
mkdir -p -v \
$(DATA_DIR)/maven-repo \
src/
.PHONY: _volumes
_repos: _volumes ## init git repos
git clone https://github.com/AlexMog/ApiLib.git -b master ./src/ApiLib
git clone https://github.com/FightForSub/FFS-Api.git -b develop ./src/FFS-Api
git clone https://github.com/FightForSub/FFS-PubSub.git -b develop ./src/FFS-PubSub
git clone https://github.com/FightForSub/ffs-zera.git -b development ./src/ffs-zera
.PHONY: _repos
init:_volumes _repos
.PHONY: init
vendor: ## install vendors
docker-compose run --rm app-ffs sh -c "npm ci && chmod -R 777 /ffs-zera/node_modules/"
docker-compose run --rm api sh -c "cd /ApiLib/ && mvn clean install -U && chmod -R 777 /root/.m2"
docker-compose run --rm api sh -c "cd /FFS-Api/ && mvn dependency:resolve -U && chmod -R 777 /root/.m2"
docker-compose run --rm api sh -c "cd /FFS-PubSub/ && mvn dependency:resolve -U && chmod -R 777 /root/.m2"
.PHONY: vendor
up: ## launch all services
docker-compose up
.PHONY: up
destroy:
docker-compose down
sudo rm -rf $(DATA_DIR)/maven-repo $(DATA_DIR)/mariadb
sudo rm -rf src/
.PHONY: destroy