forked from TrueCloudLab/frostfs-dev-env
Minor Makefile fixes
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
68e552e563
commit
a1d56e6b55
2 changed files with 6 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -43,7 +43,7 @@ get: $(foreach SVC, $(GET_SVCS), get.$(SVC))
|
||||||
|
|
||||||
# Start environment
|
# Start environment
|
||||||
.PHONY: up
|
.PHONY: up
|
||||||
up: get vendor/hosts
|
up: pull get vendor/hosts
|
||||||
$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
|
$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
|
||||||
|
|
||||||
# Stop environment
|
# Stop environment
|
||||||
|
@ -52,7 +52,6 @@ down:
|
||||||
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
|
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
|
||||||
|
|
||||||
.PHONY: vendor/hosts
|
.PHONY: vendor/hosts
|
||||||
.ONESHELL:
|
|
||||||
vendor/hosts:
|
vendor/hosts:
|
||||||
@for file in $(HOSTS_LINES); do \
|
@for file in $(HOSTS_LINES); do \
|
||||||
while read h; do \
|
while read h; do \
|
||||||
|
@ -64,3 +63,8 @@ vendor/hosts:
|
||||||
.PHONY: hosts
|
.PHONY: hosts
|
||||||
hosts: vendor/hosts
|
hosts: vendor/hosts
|
||||||
@cat vendor/hosts
|
@cat vendor/hosts
|
||||||
|
|
||||||
|
# Clean-up the envirinment
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
@rm -rf vendor/*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
05
|
|
Loading…
Reference in a new issue