-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
37 lines (31 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SHELL := /bin/bash
SCRIPTS_PATH := scripts
ifndef IMAGE_NAME
override IMAGE_NAME = labs-air-edgex
endif
ifndef IMAGE_TAG
override IMAGE_TAG = latest
endif
ifndef ECR_REGISTRY
override ECR_REGISTRY = public.ecr.aws
endif
ifndef ECR_REPO_NAME
override ECR_REPO_NAME = tibcolabs
endif
ifndef IMAGE_URL
override IMAGE_URL = "$(ECR_REGISTRY)/$(ECR_REPO_NAME)"
endif
.PHONY: build-installer
build-installer:
@$(SCRIPTS_PATH)/build_installer.sh ${NETWORK_TYPE} ${OS_TYPE} ${ARCH_TYPE} ${RELEASE_VERSION}
.PHONY: build-push-delete-air-edgex-component
build-push-delete-air-edgex-component: build-air-edgex-component push-image delete-local-image
.PHONY: build-air-edgex-component
build-air-edgex-component:
@$(SCRIPTS_PATH)/build_air_edgex_component.sh ${IMAGE_NAME} ${IMAGE_TAG} ${IMAGE_URL} ${EDGEX_COMPONENT_NAME} ${TARGET_NAME}
.PHONY: push-image
push-image:
@$(SCRIPTS_PATH)/push_image.sh ${IMAGE_NAME} ${IMAGE_TAG} ${IMAGE_URL}
.PHONY: delete-local-image
delete-local-image:
@$(SCRIPTS_PATH)/delete_local_image.sh ${IMAGE_NAME} ${IMAGE_TAG} ${IMAGE_URL}