2017-06-11 00:05:11 -05:00
|
|
|
# Docker image for SONiC platform monitoring tools
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2019-04-19 20:49:21 -05:00
|
|
|
DOCKER_PLATFORM_MONITOR_STEM = docker-platform-monitor
|
|
|
|
DOCKER_PLATFORM_MONITOR = $(DOCKER_PLATFORM_MONITOR_STEM).gz
|
|
|
|
DOCKER_PLATFORM_MONITOR_DBG = $(DOCKER_PLATFORM_MONITOR_STEM)-$(DBG_IMAGE_MARK).gz
|
|
|
|
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PATH = $(DOCKERS_PATH)/$(DOCKER_PLATFORM_MONITOR_STEM)
|
|
|
|
|
2023-09-18 13:54:28 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSENSORS) $(LM_SENSORS) $(FANCONTROL) $(SENSORD) $(LIBSWSSCOMMON) $(PYTHON3_SWSSCOMMON)
|
2022-01-19 12:53:10 -06:00
|
|
|
|
2020-12-15 18:28:58 -06:00
|
|
|
|
2020-09-29 15:57:54 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PY_COMMON_PY3)
|
2021-11-17 16:31:33 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_CONFIG_ENGINE_PY3)
|
2020-12-11 12:51:31 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_API_PY3)
|
2020-12-28 12:19:24 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_LEDD_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PCIED_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PSUD_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_SYSEEPROMD_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_THERMALCTLD_PY3)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_XCVRD_PY3)
|
2022-01-25 13:10:25 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_YCABLED_PY3)
|
2020-12-15 18:28:58 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_CHASSISD_PY3)
|
|
|
|
|
2020-11-12 12:22:38 -06:00
|
|
|
ifeq ($(PDDF_SUPPORT),y)
|
2021-03-01 11:48:59 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(PDDF_PLATFORM_API_BASE_PY3)
|
2020-11-12 12:22:38 -06:00
|
|
|
endif
|
2019-04-19 20:49:21 -05:00
|
|
|
|
2022-05-10 04:45:28 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BULLSEYE)_DBG_DEPENDS)
|
2019-07-04 00:13:55 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_DBG_DEPENDS += $(LIBSWSSCOMMON_DBG) $(LIBSENSORS_DBG)
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_DBG_DEPENDS += $(LM_SENSORS_DBG) $(SENSORD_DBG)
|
|
|
|
|
2022-05-10 04:45:28 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BULLSEYE)_DBG_IMAGE_PACKAGES)
|
2019-04-19 20:49:21 -05:00
|
|
|
|
2022-05-10 04:45:28 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_LOAD_DOCKERS = $(DOCKER_CONFIG_ENGINE_BULLSEYE)
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2021-04-26 15:51:50 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_VERSION = 1.0.0
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_PACKAGE_NAME = pmon
|
|
|
|
|
2022-11-11 01:19:25 -06:00
|
|
|
ifeq ($(CONFIGURED_PLATFORM),$(filter $(CONFIGURED_PLATFORM),mellanox barefoot))
|
2022-02-27 03:47:15 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_WARM_SHUTDOWN_BEFORE = swss
|
|
|
|
endif
|
|
|
|
|
2017-06-11 00:05:11 -05:00
|
|
|
SONIC_DOCKER_IMAGES += $(DOCKER_PLATFORM_MONITOR)
|
2017-02-01 15:02:08 -06:00
|
|
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_PLATFORM_MONITOR)
|
|
|
|
|
2019-04-19 20:49:21 -05:00
|
|
|
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_PLATFORM_MONITOR_DBG)
|
|
|
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_PLATFORM_MONITOR_DBG)
|
|
|
|
|
2017-02-01 15:02:08 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_CONTAINER_NAME = pmon
|
2020-01-26 15:56:42 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += --privileged -t
|
2017-02-01 15:02:08 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
2023-06-25 18:36:09 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /etc/timezone:/etc/timezone:ro
|
2020-10-30 06:17:30 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /var/run/platform_cache:/var/run/platform_cache:ro
|
2020-11-12 12:22:38 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /usr/share/sonic/device/pddf:/usr/share/sonic/device/pddf:ro
|
2017-02-07 02:33:20 -06:00
|
|
|
|
2017-09-11 17:29:42 -05:00
|
|
|
# Mount Arista python library on Aboot images to be used by plugins
|
2021-05-06 12:59:22 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_aboot_RUN_OPT += -v /usr/lib/libsfp-eeprom.so:/usr/lib/libsfp-eeprom.so:ro
|
2020-08-21 12:38:35 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_aboot_RUN_OPT += -v /usr/lib/python3/dist-packages/arista:/usr/lib/python3/dist-packages/arista:ro
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_aboot_RUN_OPT += -v /usr/lib/python3/dist-packages/sonic_platform:/usr/lib/python3/dist-packages/sonic_platform:ro
|
2017-09-11 17:29:42 -05:00
|
|
|
|
2019-10-04 12:52:58 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/bin/sensors
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/sbin/iSmart
|
|
|
|
$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/sbin/SmartCmd
|
2021-03-16 11:56:53 -05:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_BASE_IMAGE_FILES += cmd_wrapper:/usr/bin/ethtool
|
2019-11-04 19:44:01 -06:00
|
|
|
$(DOCKER_PLATFORM_MONITOR)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
2021-06-30 14:45:40 -05:00
|
|
|
|
2022-05-10 04:45:28 -05:00
|
|
|
SONIC_BULLSEYE_DOCKERS += $(DOCKER_PLATFORM_MONITOR)
|
|
|
|
SONIC_BULLSEYE_DBG_DOCKERS += $(DOCKER_PLATFORM_MONITOR_DBG)
|