Skip to content

Commit 907f976

Browse files
authored
microservices: Timeseries: Add configurable variable for image name and version
Add onfigurable variables for the image name and versionm enhancing the flexibility of deployment configurations for the timeseries microservice Signed-off-by: Vellaisamy, Sathyendran <sathyendran.vellaisamy@intel.com>
1 parent d251cad commit 907f976

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

microservices/time-series-analytics/docker/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ timeseries_no_proxy=localhost,127.0.0.1
2626

2727
KAPACITOR_PORT=9092
2828
LOG_LEVEL=INFO
29+
TIME_SERIES_ANALYTICS_IMAGE=intel/ia-time-series-analytics-microservice:1.0.0
30+
# Please provide the suffix for the image version you want to use like rc1, rc2, git hash id etc.
31+
IMAGE_SUFFIX=""

microservices/time-series-analytics/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
INSTALL_SOURCES: "no"
1919
container_name: ia-time-series-analytics-microservice
2020
hostname: ia-time-series-analytics-microservice
21-
image: ${DOCKER_REGISTRY}intel/ia-time-series-analytics-microservice:1.0.0
21+
image: ${DOCKER_REGISTRY}${TIME_SERIES_ANALYTICS_IMAGE}${IMAGE_SUFFIX:+-${IMAGE_SUFFIX}}
2222
restart: unless-stopped
2323
security_opt:
2424
- no-new-privileges

microservices/time-series-analytics/helm/templates/time-series-analytics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
{{- end }}
4343
containers:
4444
- name: ia-time-series-analytics-microservice
45-
image: {{ .Values.DOCKER_REGISTRY }}intel/ia-time-series-analytics-microservice:1.0.0
45+
image: {{ .Values.DOCKER_REGISTRY }}{{ .Values.images.time_series_analytics_image }}{{ if .Values.images.image_suffix }}-{{ .Values.images.image_suffix }}{{ end }}
4646
imagePullPolicy: {{ .Values.imagePullPolicy }}
4747
securityContext:
4848
readOnlyRootFilesystem: true

microservices/time-series-analytics/helm/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#
66

77
namespace: apps
8+
# Please provide docker registry details below for docker-compose pull
9+
# Please provide full registry url with port trail by /
10+
# e.q. localhost:5000/
811
DOCKER_REGISTRY: ''
912
DOCKER_USERNAME: ''
1013
DOCKER_PASSWORD: ''
@@ -30,3 +33,8 @@ config:
3033
port: "9092"
3134
ext:
3235
port: "30009"
36+
37+
images:
38+
# Please provide the suffix for the image version you want to use like rc1, rc2, git hash id etc.
39+
image_suffix: ""
40+
time_series_analytics_image: intel/ia-time-series-analytics-microservice:1.0.0

0 commit comments

Comments
 (0)