Skip to content

Commit 9864aec

Browse files
committed
Mount all database to other containers
Signed-off-by: Ze Gan <[email protected]>
1 parent 9b7d70c commit 9864aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/build_templates/docker_image_ctl.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ start() {
502502
redis_dir_list=`/usr/bin/python -c "import sys; import os; import json; f=open(sys.argv[1]); \
503503
global_db_dir = os.path.dirname(sys.argv[1]); data=json.load(f); \
504504
print(\" \".join([os.path.normpath(global_db_dir+'/'+elem['include']).partition('sonic-db')[0]\
505-
for elem in data['INCLUDES'] if 'namespace' in elem])); f.close()" $SONIC_DB_GLOBAL_JSON`
505+
for elem in data['INCLUDES'] if 'namespace' in elem or 'container_name' in elem ])); f.close()" $SONIC_DB_GLOBAL_JSON`
506506
fi
507507

508508
{%- if docker_container_name == "database" %}
@@ -518,7 +518,7 @@ start() {
518518
fi
519519
{%- endif %}
520520

521-
if [[ -z "$DEV" || $DATABASE_TYPE == "dpudb" ]]; then
521+
if [[ -z "$DEV" ]]; then
522522
NET="host"
523523

524524
# For Multi-ASIC platform we have to mount the redis paths for database instances running in different

0 commit comments

Comments
 (0)