aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 13:26:13 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 14:04:46 +0200
commit63023eb7e6285a3fdddc33804a094ca61289f909 (patch)
treeaa21e553bd691db42fb4c7542d5fc05d2c331205
parentec06cc5981e1d24fba2474e9dc94efc323d9cbc9 (diff)
regen_doc.sh: Add optional parameter to customize docker execution
The osmo-nitb-master image can run not only osmo-nitb, but also osmo-bsc_nat. In that case we can't use the default command from Dockerfile, but should provide our own. This argument makes it possible to do so. Change-Id: I52c3cb2cdcfb143e71ac2c1aa40bb466e41a0f5c Related: OS#1700
-rwxr-xr-xscripts/regen_doc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/regen_doc.sh b/scripts/regen_doc.sh
index 7c7529f..5327ae8 100755
--- a/scripts/regen_doc.sh
+++ b/scripts/regen_doc.sh
@@ -6,6 +6,7 @@ NAME="$1"
PORT="$2"
COUNTERFILE="$3"
VTYFILE="$4"
+DOCKER_EXTRA="$5"
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
if [ -z "$OSMO_INTERACT_VTY" ]; then
@@ -23,7 +24,8 @@ container_create() {
docker run --rm --network ${NET_NAME} --ip ${IP_ADDR} \
--name ${BUILD_TAG}-${CONTAINERNAME} -d \
- ${REPO_USER}/${CONTAINERNAME}
+ ${REPO_USER}/${CONTAINERNAME} \
+ ${DOCKER_EXTRA}
}