cd2c86eab6
Signed-off-by: Stepan Blyschak stepanb@nvidia.com This PR is part of SONiC Application Extension Depends on #5938 - Why I did it To provide an infrastructure change in order to support SONiC Application Extension feature. - How I did it Label every installable SONiC Docker with a minimal required manifest and auto-generate packages.json file based on installed SONiC images. - How to verify it Build an image, execute the following command: admin@sonic:~$ docker inspect docker-snmp:1.0.0 | jq '.[0].Config.Labels["com.azure.sonic.manifest"]' -r | jq Cat /var/lib/sonic-package-manager/packages.json file to verify all dockers are listed there.
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
# docker image for lldp agent
|
|
|
|
DOCKER_LLDP_STEM = docker-lldp
|
|
DOCKER_LLDP = $(DOCKER_LLDP_STEM).gz
|
|
DOCKER_LLDP_DBG = $(DOCKER_LLDP_STEM)-$(DBG_IMAGE_MARK).gz
|
|
|
|
$(DOCKER_LLDP)_PATH = $(DOCKERS_PATH)/docker-lldp
|
|
|
|
$(DOCKER_LLDP)_DEPENDS += $(LLDPD) $(LIBSWSSCOMMON) $(PYTHON3_SWSSCOMMON)
|
|
|
|
$(DOCKER_LLDP)_DBG_DEPENDS = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_DEPENDS)
|
|
$(DOCKER_LLDP)_DBG_DEPENDS += $(LLDPD_DBG) $(LIBSWSSCOMMON_DBG)
|
|
|
|
$(DOCKER_LLDP)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BUSTER)_DBG_IMAGE_PACKAGES)
|
|
|
|
$(DOCKER_LLDP)_PYTHON_WHEELS += $(DBSYNCD_PY3)
|
|
$(DOCKER_LLDP)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
|
|
|
$(DOCKER_LLDP)_VERSION = 1.0.0
|
|
$(DOCKER_LLDP)_PACKAGE_NAME = lldp
|
|
|
|
SONIC_DOCKER_IMAGES += $(DOCKER_LLDP)
|
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_LLDP)
|
|
|
|
SONIC_DOCKER_DBG_IMAGES += $(DOCKER_LLDP_DBG)
|
|
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_LLDP_DBG)
|
|
|
|
$(DOCKER_LLDP)_CONTAINER_NAME = lldp
|
|
$(DOCKER_LLDP)_RUN_OPT += --privileged -t
|
|
$(DOCKER_LLDP)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
|
$(DOCKER_LLDP)_RUN_OPT += -v /usr/share/sonic/scripts:/usr/share/sonic/scripts:ro
|
|
|
|
$(DOCKER_LLDP)_BASE_IMAGE_FILES += lldpctl:/usr/bin/lldpctl
|
|
$(DOCKER_LLDP)_BASE_IMAGE_FILES += lldpcli:/usr/bin/lldpcli
|
|
$(DOCKER_LLDP)_BASE_IMAGE_FILES += monit_lldp:/etc/monit/conf.d
|
|
$(DOCKER_LLDP)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|