control-center/Makefile

85 lines
2.2 KiB
Makefile
Raw Normal View History

SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
SERVICE_NAME := control-center
# Service image default tag
SERVICE_IMAGE_TAG ?= $(shell git rev-parse HEAD)
# The tag for service image to be pushed with
SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
REGISTRY ?= dr2.rbkmoney.com
# Base image for the service
BASE_IMAGE_NAME := service-fe
BASE_IMAGE_TAG := 2b4570bc1d9631c10aaed2132eb87eb9003f3471
BUILD_IMAGE_TAG := f3732d29a5e622aabf80542b5138b3631a726adb
GIT_SSH_COMMAND :=
2019-10-02 13:22:33 +00:00
DOCKER_RUN_OPTS = -e GIT_SSH_COMMAND='$(GIT_SSH_COMMAND)' -e NG_CLI_ANALYTICS=ci
2019-01-17 10:12:18 +00:00
CALL_W_CONTAINER := init build clean submodules
.PHONY: $(CALL_W_CONTAINER)
all: build
-include $(UTILS_PATH)/make_lib/utils_image.mk
-include $(UTILS_PATH)/make_lib/utils_container.mk
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
init:
npm install
2019-03-15 11:11:29 +00:00
compile: compile-damsel compile-machinegun compile-fistful
2019-03-15 11:11:29 +00:00
build: check lint compile
npm run build
2019-03-15 11:11:29 +00:00
clean-compile: clean compile
2019-03-15 11:11:29 +00:00
clean:
rm -rf dist src/app/thrift/gen-* src/assets/meta-damsel.json src/app/gen-damsel src/app/machinegun/gen-* src/app/fistful/gen-*
2018-10-23 09:31:54 +00:00
2019-03-15 11:11:29 +00:00
compile-damsel: damsel-client damsel-model damsel-meta
2018-10-23 09:31:54 +00:00
2019-03-15 11:11:29 +00:00
damsel-client:
@$(foreach file,domain_config payment_processing merch_stat,echo $(file); thrift -r -gen js:node,runtime_package=woody_js/dist/thrift -o ./src/app/thrift ./node_modules/damsel/proto/$(file).thrift;)
2018-10-23 09:31:54 +00:00
2019-01-10 13:00:48 +00:00
damsel-meta:
npm run damsel-meta
damsel-model:
npm run damsel-model
2018-10-23 09:31:54 +00:00
2019-03-15 11:11:29 +00:00
compile-machinegun: machinegun-model machinegun-client
machinegun-client:
@$(foreach file,state_processing,echo $(file); thrift -r -gen js:node,runtime_package=woody_js/dist/thrift -o ./src/app/machinegun ./node_modules/machinegun_proto/proto/$(file).thrift;)
machinegun-model:
npm run machinegun-model
compile-fistful: fistful-model fistful-client
fistful-client:
@$(foreach file,withdrawal_session,echo $(file); thrift -r -gen js:node,runtime_package=woody_js/dist/thrift -o ./src/app/fistful ./node_modules/fistful-proto/proto/$(file).thrift;)
fistful-model:
npm run fistful-model
2018-08-21 13:15:51 +00:00
lint:
npm run lint
2019-01-17 10:12:18 +00:00
check:
npm run check