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)
|
2020-05-19 05:12:50 -05:00
|
|
|
$(DOCKER_TELEMETRY)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_DEPENDS)
|
2019-04-19 20:49:21 -05:00
|
|
|
|
2020-05-19 05:12:50 -05:00
|
|
|
$(DOCKER_TELEMETRY)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
|
|
|
$(DOCKER_TELEMETRY)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_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
|
2020-01-26 15:56:42 -06:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += --privileged -t
|
2018-03-27 15:39:04 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
2020-08-21 17:34:14 -05:00
|
|
|
$(DOCKER_TELEMETRY)_RUN_OPT += -v /var/run/dbus:/var/run/dbus:rw
|
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
|