This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
node-fftcg/Makefile

23 lines
562 B
Makefile
Raw Normal View History

2019-02-07 16:03:20 +00:00
COMPOSE:=sudo docker-compose
2019-02-13 16:25:05 +00:00
CANARY:=node_modules/.yarn-integrity
2019-02-07 16:03:20 +00:00
.PHONY: all
all: develop
2019-02-13 16:25:05 +00:00
%/$(CANARY):
$(eval image:=$(patsubst %/$(CANARY),%,$@))
2019-02-07 16:03:20 +00:00
$(COMPOSE) build $(image)
$(COMPOSE) run --rm $(image) yarn install --production=false
DFILES:=$(wildcard */Dockerfile)
IMAGES:=$(patsubst %/Dockerfile,%,$(DFILES))
.PHONY: develop
2019-02-13 16:25:05 +00:00
develop: $(patsubst %,%/$(CANARY),$(IMAGES))
2019-02-07 16:03:20 +00:00
$(COMPOSE) up
.PHONY: production
production:
$(COMPOSE) -f docker-compose.yml -f docker-compose.prod.yml build
$(COMPOSE) -f docker-compose.yml -f docker-compose.prod.yml up -d