2020-01-10 15:46:32 -06:00
|
|
|
# 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)
|
|
|
|
|
2022-03-04 22:44:07 -06:00
|
|
|
$(DOCKER_RESTAPI)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
2020-01-10 15:46:32 -06:00
|
|
|
|
2020-08-05 15:23:12 -05:00
|
|
|
ifeq ($(INCLUDE_RESTAPI), y)
|
2020-01-10 15:46:32 -06:00
|
|
|
SONIC_DOCKER_IMAGES += $(DOCKER_RESTAPI)
|
|
|
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_RESTAPI)
|
2020-01-14 19:13:45 -06:00
|
|
|
endif
|
2020-01-10 15:46:32 -06:00
|
|
|
|
2020-02-14 13:08:57 -06:00
|
|
|
$(DOCKER_RESTAPI)_CONTAINER_NAME = restapi
|
2020-01-10 15:46:32 -06:00
|
|
|
$(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
|
2020-04-30 02:25:49 -05:00
|
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -v /etc/sonic/credentials:/etc/sonic/credentials:ro
|
2020-04-15 04:08:45 -05:00
|
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -p=8081:8081/tcp
|
2020-01-10 15:46:32 -06:00
|
|
|
$(DOCKER_RESTAPI)_RUN_OPT += -p=8090:8090/tcp
|
2020-04-15 04:08:45 -05:00
|
|
|
|
|
|
|
$(DOCKER_RESTAPI)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|