Skip to content

Commit 5dafa90

Browse files
authored
[dockers]: Add base image files to syncd-brcm, database and teamd (#380)
1 parent 45e5c14 commit 5dafa90

6 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker exec -it database redis-cli "$@"
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker exec -i teamd teamdctl "$@"
4+

platform/broadcom/docker-syncd-brcm.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ $(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
1414
$(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
1515
$(DOCKER_SYNCD_BRCM)_RUN_OPT += --volumes-from database
1616
$(DOCKER_SYNCD_BRCM)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
17+
18+
$(DOCKER_SYNCD_BRCM)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
19+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker exec -i syncd bcmcmd "$@"
4+

rules/docker-database.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ $(DOCKER_DATABASE)_CONTAINER_NAME = database
1111
$(DOCKER_DATABASE)_RUN_OPT += --net=host --privileged -t
1212
$(DOCKER_DATABASE)_RUN_OPT += -v /var/run/redis
1313

14+
$(DOCKER_DATABASE)_BASE_IMAGE_FILES += redis-cli:/usr/bin/redis-cli
15+

rules/docker-teamd.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ $(DOCKER_TEAMD)_CONTAINER_NAME = teamd
1111
$(DOCKER_TEAMD)_RUN_OPT += --net=host --privileged -t
1212
$(DOCKER_TEAMD)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
1313
$(DOCKER_TEAMD)_RUN_OPT += --volumes-from database
14+
15+
$(DOCKER_TEAMD)_BASE_IMAGE_FILES += teamdctl:/usr/bin/teamdctl
16+

0 commit comments

Comments
 (0)