[dockers]: Add base image files to syncd-brcm, database and teamd (#380)

This commit is contained in:
Joe LeVeque 2017-03-06 12:22:42 -08:00 committed by GitHub
parent 45e5c14729
commit 5dafa907b2
6 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/bin/bash
docker exec -it database redis-cli "$@"

View File

@ -0,0 +1,4 @@
#!/bin/bash
docker exec -i teamd teamdctl "$@"

View File

@ -14,3 +14,6 @@ $(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
$(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
$(DOCKER_SYNCD_BRCM)_RUN_OPT += --volumes-from database
$(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_SYNCD_BRCM)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd

View File

@ -0,0 +1,4 @@
#!/bin/bash
docker exec -i syncd bcmcmd "$@"

View File

@ -11,3 +11,5 @@ $(DOCKER_DATABASE)_CONTAINER_NAME = database
$(DOCKER_DATABASE)_RUN_OPT += --net=host --privileged -t
$(DOCKER_DATABASE)_RUN_OPT += -v /var/run/redis
$(DOCKER_DATABASE)_BASE_IMAGE_FILES += redis-cli:/usr/bin/redis-cli

View File

@ -11,3 +11,6 @@ $(DOCKER_TEAMD)_CONTAINER_NAME = teamd
$(DOCKER_TEAMD)_RUN_OPT += --net=host --privileged -t
$(DOCKER_TEAMD)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_TEAMD)_RUN_OPT += --volumes-from database
$(DOCKER_TEAMD)_BASE_IMAGE_FILES += teamdctl:/usr/bin/teamdctl