You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1020 B
Makefile

REGISTRY_NAME=registry.runcible.io
FRONTEND_IMAGE_NAME=$(REGISTRY_NAME)/demo-helm-frontend
FRONTEND_IMAGE_VERSION=1.6.0
API_IMAGE_NAME=$(REGISTRY_NAME)/demo-helm-api
API_IMAGE_VERSION=1.6.0
push-all: push-app-image push-api-image
.PHONY: push-all
push-app-image: build-app-image
docker push $(FRONTEND_IMAGE_NAME):$(FRONTEND_IMAGE_VERSION)
.PHONY: push-app-image
build-app-image:
docker build -t $(FRONTEND_IMAGE_NAME):$(FRONTEND_IMAGE_VERSION) ./app
.PHONY: build-app-image
push-api-image: build-api-image
docker push $(API_IMAGE_NAME):$(API_IMAGE_VERSION)
.PHONY: push-api-image
build-api-image:
docker build -t $(API_IMAGE_NAME):$(API_IMAGE_VERSION) ./api
.PHONY: build-api-image
update-API-deps:
pip-compile -o api/requirements.txt api/requirements.in
.PHONY: update-API-deps
sync-virtualenv:
pip-sync dev_requirements.txt api/requirements.txt
.PHONY: sync-virtualenv
check-images:
echo $(FRONTEND_IMAGE_NAME):$(FRONTEND_IMAGE_VERSION)
echo $(API_IMAGE_NAME):$(API_IMAGE_VERSION)
.PHONY: check-images