78c803851c
1. remove container feature table 2. do not generate feature entry if the feature is not included in the image 3. rename ENABLE_* to INCLUDE_* for better clarity 4. rename feature status to feature state 5. [submodule]: update sonic-utilities * 9700e45 2020-08-03 | [show/config]: combine feature and container feature cli (#1015) (HEAD, origin/master, origin/HEAD) [lguohan] * c9d3550 2020-08-03 | [tests]: fix drops_group_test failure on second run (#1023) [lguohan] * dfaae69 2020-08-03 | [lldpshow]: Fix input device is not a TTY error (#1016) [Arun Saravanan Balachandran] * 216688e 2020-08-02 | [tests]: rename sonic-utilitie-tests to tests (#1022) [lguohan] Signed-off-by: Guohan Lu <lguohan@gmail.com>
28 lines
1.0 KiB
Makefile
28 lines
1.0 KiB
Makefile
# docker image for rest-api
|
|
|
|
DOCKER_RESTAPI_STEM = docker-sonic-restapi
|
|
DOCKER_RESTAPI = $(DOCKER_RESTAPI_STEM).gz
|
|
|
|
$(DOCKER_RESTAPI)_DEPENDS += $(LIBHIREDIS) $(LIBNL3) $(LIBNL_GENL3) \
|
|
$(LIBNL_ROUTE3) $(LIBSWSSCOMMON) $(RESTAPI)
|
|
|
|
$(DOCKER_RESTAPI)_PATH = $(DOCKERS_PATH)/$(DOCKER_RESTAPI_STEM)
|
|
|
|
$(DOCKER_RESTAPI)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
|
|
|
|
ifeq ($(INCLUDE_RESTAPI), y)
|
|
SONIC_DOCKER_IMAGES += $(DOCKER_RESTAPI)
|
|
SONIC_STRETCH_DOCKERS += $(DOCKER_RESTAPI)
|
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_RESTAPI)
|
|
endif
|
|
|
|
$(DOCKER_RESTAPI)_CONTAINER_NAME = restapi
|
|
$(DOCKER_RESTAPI)_RUN_OPT += --cap-add NET_ADMIN --privileged -t
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -v /var/run/redis/redis.sock:/var/run/redis/redis.sock
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -v /etc/sonic/credentials:/etc/sonic/credentials:ro
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -p=8081:8081/tcp
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -p=8090:8090/tcp
|
|
|
|
$(DOCKER_RESTAPI)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
|
$(DOCKER_RESTAPI)_BASE_IMAGE_FILES += monit_restapi:/etc/monit/conf.d
|