forked from EnMasseProject/enmasse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.env.mk
115 lines (107 loc) · 5.72 KB
/
Makefile.env.mk
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Docker env
DOCKER_REGISTRY ?= quay.io
DOCKER_ORG ?= enmasse
DOCKER ?= docker
PROJECT_PREFIX ?= enmasse
PROJECT_NAME ?= $(shell basename $(CURDIR))
REVISION ?= $(shell git rev-parse HEAD)
VERSION ?= $(shell grep "release.version" $(TOPDIR)/pom.properties| cut -d'=' -f2)
OLM_VERSION ?= $(shell grep "olm.version" $(TOPDIR)/pom.properties| cut -d'=' -f2)
MAVEN_VERSION ?= $(shell grep "maven.version" $(TOPDIR)/pom.properties| cut -d'=' -f2)
APP_BUNDLE_PREFIX ?= $(shell grep "application.bundle.prefix" $(TOPDIR)/pom.properties| cut -d'=' -f2)
OLM_PACKAGE_CHANNEL ?= $(shell grep "olm.package.channel" $(TOPDIR)/pom.properties| cut -d'=' -f2)
OLM_REPLACES_VERSION ?= $(shell grep "olm.csv.replaces" $(TOPDIR)/pom.properties| cut -d'=' -f2)
TAG ?= latest
CONSOLE_LINK_NAME ?= $(shell grep "application.globalconsole.display.name" $(TOPDIR)/pom.properties| cut -d'=' -f2)
CONSOLE_LINK_SECTION_NAME ?= $(shell grep "application.globalconsole.section.name" $(TOPDIR)/pom.properties| cut -d'=' -f2)
CONSOLE_LINK_IMAGE_URL ?= data:$(shell grep "olm.csv.logo.mediatype" $(TOPDIR)/pom.properties| cut -d'=' -f2);base64\,$(shell grep "olm.csv.logo.base64" $(TOPDIR)/pom.properties| cut -d'=' -f2)
# Image settings
DOCKER_REGISTRY_PREFIX ?= $(DOCKER_REGISTRY)/
IMAGE_VERSION ?= $(TAG)
ADDRESS_SPACE_CONTROLLER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/address-space-controller:$(IMAGE_VERSION)
STANDARD_CONTROLLER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/standard-controller:$(IMAGE_VERSION)
ROUTER_IMAGE ?= quay.io/interconnectedcloud/qdrouterd:1.12.0
BROKER_PLUGIN_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/broker-plugin:$(IMAGE_VERSION)
TOPIC_FORWARDER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/topic-forwarder:$(IMAGE_VERSION)
AGENT_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/agent:$(IMAGE_VERSION)
NONE_AUTHSERVICE_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/none-authservice:$(IMAGE_VERSION)
KEYCLOAK_IMAGE ?= quay.io/enmasse/keycloak-openshift:4.8.3.Final
KEYCLOAK_PLUGIN_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/keycloak-plugin:$(IMAGE_VERSION)
SERVICE_BROKER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/service-broker:$(IMAGE_VERSION)
CONSOLE_INIT_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/console-init:$(IMAGE_VERSION)
CONSOLE_SERVER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/console-server:$(IMAGE_VERSION)
CONSOLE_PROXY_OPENSHIFT_IMAGE ?= quay.io/openshift/origin-oauth-proxy:latest
CONSOLE_PROXY_OPENSHIFT3_IMAGE ?= openshift/oauth-proxy:latest
CONSOLE_PROXY_KUBERNETES_IMAGE ?= quay.io/oauth2-proxy/oauth2-proxy:v5.1.0
OLM_MANIFEST_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/olm-manifest:$(IMAGE_VERSION)
OLM_INDEX_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/olm-index:$(IMAGE_VERSION)
OLM_INDEX_IMAGE_PREVIOUS ?= quay.io/enmasse/olm-index:$(OLM_REPLACES_VERSION)
PROMETHEUS_IMAGE ?= prom/prometheus:v2.4.3
ALERTMANAGER_IMAGE ?= prom/alertmanager:v0.15.2
GRAFANA_IMAGE ?= grafana/grafana:5.3.1
APPLICATION_MONITORING_OPERATOR_IMAGE ?= quay.io/integreatly/application-monitoring-operator:v1.1.4
KUBE_STATE_METRICS_IMAGE ?= quay.io/coreos/kube-state-metrics:v1.4.0
BROKER_IMAGE ?= quay.io/enmasse/artemis-base:2.13.0-ARTEMIS-2810
CONTROLLER_MANAGER_IMAGE ?= $(DOCKER_REGISTRY_PREFIX)$(DOCKER_ORG)/controller-manager:$(IMAGE_VERSION)
DEFAULT_PROJECT ?= enmasse-infra
ifeq ($(TAG),latest)
IMAGE_PULL_POLICY ?= Always
else
IMAGE_PULL_POLICY ?= IfNotPresent
endif
IMAGE_ENV=ADDRESS_SPACE_CONTROLLER_IMAGE=$(ADDRESS_SPACE_CONTROLLER_IMAGE) \
STANDARD_CONTROLLER_IMAGE=$(STANDARD_CONTROLLER_IMAGE) \
ROUTER_IMAGE=$(ROUTER_IMAGE) \
BROKER_IMAGE=$(BROKER_IMAGE) \
BROKER_PLUGIN_IMAGE=$(BROKER_PLUGIN_IMAGE) \
TOPIC_FORWARDER_IMAGE=$(TOPIC_FORWARDER_IMAGE) \
SUBSERV_IMAGE=$(SUBSERV_IMAGE) \
SERVICE_BROKER_IMAGE=$(SERVICE_BROKER_IMAGE) \
NONE_AUTHSERVICE_IMAGE=$(NONE_AUTHSERVICE_IMAGE) \
AGENT_IMAGE=$(AGENT_IMAGE) \
KEYCLOAK_IMAGE=$(KEYCLOAK_IMAGE) \
KEYCLOAK_PLUGIN_IMAGE=$(KEYCLOAK_PLUGIN_IMAGE) \
CONSOLE_INIT_IMAGE=$(CONSOLE_INIT_IMAGE) \
CONSOLE_SERVER_IMAGE=$(CONSOLE_SERVER_IMAGE) \
CONSOLE_PROXY_OPENSHIFT_IMAGE=$(CONSOLE_PROXY_OPENSHIFT_IMAGE) \
CONSOLE_PROXY_OPENSHIFT3_IMAGE=$(CONSOLE_PROXY_OPENSHIFT3_IMAGE) \
CONSOLE_PROXY_KUBERNETES_IMAGE=$(CONSOLE_PROXY_KUBERNETES_IMAGE) \
OLM_MANIFEST_IMAGE=$(OLM_MANIFEST_IMAGE) \
OLM_INDEX_IMAGE=$(OLM_INDEX_IMAGE) \
OLM_INDEX_IMAGE_PREVIOUS=$(OLM_INDEX_IMAGE_PREVIOUS) \
PROMETHEUS_IMAGE=$(PROMETHEUS_IMAGE) \
ALERTMANAGER_IMAGE=$(ALERTMANAGER_IMAGE) \
GRAFANA_IMAGE=$(GRAFANA_IMAGE) \
APPLICATION_MONITORING_OPERATOR_IMAGE=$(APPLICATION_MONITORING_OPERATOR_IMAGE) \
KUBE_STATE_METRICS_IMAGE=$(KUBE_STATE_METRICS_IMAGE) \
CONTROLLER_MANAGER_IMAGE=$(CONTROLLER_MANAGER_IMAGE) \
IMAGE_PULL_POLICY=$(IMAGE_PULL_POLICY) \
ENMASSE_VERSION=$(VERSION) \
MAVEN_VERSION=$(MAVEN_VERSION) \
IMAGE_VERSION=$(IMAGE_VERSION) \
PROJECT_PREFIX=$(PROJECT_PREFIX)
IMAGE_LIST=\
$(ADDRESS_SPACE_CONTROLLER_IMAGE) \
$(STANDARD_CONTROLLER_IMAGE) \
$(ROUTER_IMAGE) \
$(BROKER_IMAGE) \
$(BROKER_PLUGIN_IMAGE) \
$(TOPIC_FORWARDER_IMAGE) \
$(SUBSERV_IMAGE) \
$(SERVICE_BROKER_IMAGE) \
$(NONE_AUTHSERVICE_IMAGE) \
$(AGENT_IMAGE) \
$(KEYCLOAK_IMAGE) \
$(KEYCLOAK_PLUGIN_IMAGE) \
$(CONSOLE_INIT_IMAGE) \
$(CONSOLE_PROXY_OPENSHIFT_IMAGE) \
$(CONSOLE_PROXY_OPENSHIFT3_IMAGE) \
$(CONSOLE_PROXY_KUBERNETES_IMAGE) \
$(CONSOLE_SERVER_IMAGE) \
$(OLM_MANIFEST_IMAGE) \
$(PROMETHEUS_IMAGE) \
$(ALERTMANAGER_IMAGE) \
$(GRAFANA_IMAGE) \
$(APPLICATION_MONITORING_OPERATOR_IMAGE) \
$(KUBE_STATE_METRICS_IMAGE) \
$(CONTROLLER_MANAGER_IMAGE)