Add DF_NO_BASH option to docker file

In case we only want to configure the DF docker and not run the bash
(e.g. in docker containers that use this container) we would like to be
able to do so.
Supplying the DF_NO_CONTROLLER=1 does not run the controller, but runs
a bash, now adding DF_NO_BASH will just configure the docker and exit.

Change-Id: Ic06e14d1ce60b33832a40626fd9d737c68bb19b7
This commit is contained in:
Shachar Snapiri 2018-08-30 17:25:44 +03:00
parent 945b1e368c
commit f6f5e5365e
1 changed files with 1 additions and 1 deletions

View File

@ -56,6 +56,6 @@ fi
if [ -z "$DF_NO_CONTROLLER" ]; then
/usr/local/bin/df-local-controller --config-file /etc/dragonflow/dragonflow.ini
else
elif [ -z "$DF_NO_BASH" ]; then
/bin/bash
fi