2018-08-02 13:41:30 +00:00
|
|
|
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)
|
|
|
|
|
2019-03-19 16:26:39 +00:00
|
|
|
REGISTRY ?= dr2.rbkmoney.com
|
|
|
|
|
2018-08-02 13:41:30 +00:00
|
|
|
# Base image for the service
|
|
|
|
BASE_IMAGE_NAME := service-fe
|
2020-08-06 16:30:17 +00:00
|
|
|
BASE_IMAGE_TAG := 647d66a59ba89ea42b326ca5156f5d1e1395febc
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2020-07-09 14:22:59 +00:00
|
|
|
BUILD_IMAGE_TAG := b04c5291d101132e53e578d96e1628d2e6dab0c0
|
2018-08-02 13:41:30 +00:00
|
|
|
|
|
|
|
GIT_SSH_COMMAND :=
|
2019-12-16 16:22:16 +00:00
|
|
|
DOCKER_RUN_OPTS = -e GIT_SSH_COMMAND='$(GIT_SSH_COMMAND)' -e NG_CLI_ANALYTICS=ci -e NPM_TOKEN='$(GITHUB_TOKEN)'
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2019-12-24 13:54:27 +00:00
|
|
|
|
2019-01-17 10:12:18 +00:00
|
|
|
CALL_W_CONTAINER := init build clean submodules
|
2018-08-02 13:41:30 +00:00
|
|
|
|
|
|
|
.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:
|
2020-04-06 13:58:30 +00:00
|
|
|
echo -e "//npm.pkg.github.com/:_authToken=$(NPM_TOKEN)" >> .npmrc
|
|
|
|
npm ci
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2020-09-24 11:57:38 +00:00
|
|
|
compile:
|
|
|
|
npm run compile-thrift
|
2021-03-31 11:05:35 +00:00
|
|
|
npm run compile-thrift-depricated
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2019-03-15 11:11:29 +00:00
|
|
|
build: check lint compile
|
|
|
|
npm run build
|
2018-08-02 13:41:30 +00:00
|
|
|
|
2018-08-21 13:15:51 +00:00
|
|
|
lint:
|
|
|
|
npm run lint
|
2019-01-17 10:12:18 +00:00
|
|
|
|
|
|
|
check:
|
2020-04-09 09:53:00 +00:00
|
|
|
npm run prettier
|