2018-03-27 15:39:04 -05:00
|
|
|
# docker image for telemetry agent
|
|
|
|
|
2019-04-19 20:49:21 -05:00
|
|
|
DOCKER_TELEMETRY_STEM = docker-sonic-telemetry
|
|
|
|
DOCKER_TELEMETRY = $(DOCKER_TELEMETRY_STEM).gz
|
|
|
|
DOCKER_TELEMETRY_DBG = $(DOCKER_TELEMETRY_STEM)-$(DBG_IMAGE_MARK).gz
|
|
|
|
|
|
|
|
$(DOCKER_TELEMETRY)_PATH = $(DOCKERS_PATH)/$(DOCKER_TELEMETRY_STEM)
|
|
|
|
|
2020-06-22 18:01:55 -05:00
|
|
|
$(DOCKER_TELEMETRY)_DEPENDS += $(SONIC_MGMT_COMMON)
|
2020-06-27 03:17:20 -05:00
|
|
|
$(DOCKER_TELEMETRY)_DEPENDS += $(SONIC_TELEMETRY)
|
2022-01-20 18:41:39 -06:00
|
|
|
$(DOCKER_TELEMETRY)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BULLSEYE)_DBG_DEPENDS)
|
2019-04-19 20:49:21 -05:00
|
|
|
|
2022-01-20 18:41:39 -06:00
|
|
|
$(DOCKER_TELEMETRY)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BULLSEYE)
|
2021-04-26 15:51:50 -05:00
|
|
|
|
|
|
|
$(DOCKER_TELEMETRY)_VERSION = 1.0.0
|
|
|
|
$(DOCKER_TELEMETRY)_PACKAGE_NAME = telemetry
|
|
|
|
|
2022-01-20 18:41:39 -06:00
|
|
|
$(DOCKER_TELEMETRY)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BULLSEYE)_DBG_IMAGE_PACKAGES)
|
2019-04-19 20:49:21 -05:00
|
|
|
|
2018-03-27 15:39:04 -05:00
|
|
|
SONIC_DOCKER_IMAGES += $(DOCKER_TELEMETRY)
|
2020-08-05 15:23:12 -05:00
|
|
|
ifeq ($(INCLUDE_SYSTEM_TELEMETRY), y)
|
2018-03-27 15:39:04 -05:00
|
|
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_TELEMETRY)
|
|
|
|
endif
|
|
|
|
|
2019-04-19 20:49:21 -05:00
|
|
|
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_TELEMETRY_DBG)
|
2020-08-05 15:23:12 -05:00
|
|
|
ifeq ($(INCLUDE_SYSTEM_TELEMETRY), y)
|
2019-04-19 20:49:21 -05:00
|
|
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_TELEMETRY_DBG)
|
|
|
|
endif
|
|
|
|
|
2018-03-27 15:39:04 -05:00
|
|
|
$(DOCKER_TELEMETRY)_CONTAINER_NAME = telemetry
|
2023-09-07 13:04:11 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -t
|
2018-03-27 15:39:04 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
2023-06-25 18:36:09 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -v /etc/timezone:/etc/timezone:ro
|
2023-04-27 00:18:54 -05:00
|
|
|
ifneq ($(INCLUDE_SYSTEM_GNMI), y)
|
2020-08-21 17:34:14 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -v /var/run/dbus:/var/run/dbus:rw
|
2023-04-27 00:18:54 -05:00
|
|
|
endif
|
2018-03-27 15:39:04 -05:00
|
|
|
|
2019-11-22 16:28:40 -06:00
|
|
|
$(DOCKER_TELEMETRY)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
2020-01-10 18:21:02 -06:00
|
|
|
$(DOCKER_TELEMETRY)_BASE_IMAGE_FILES += monit_telemetry:/etc/monit/conf.d
|