From f87df4c05972364d4ed4c84ce65a204689ce224b Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Wed, 8 Nov 2017 15:31:27 +0200 Subject: fix docker_run script Change-Id: I3c87db4bd9c3ff9524a3d01de3eb947071f9484d Issue-Id: SDC-608 Signed-off-by: Yuli Shlosberg --- sdc-os-chef/scripts/docker_run.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'sdc-os-chef/scripts') diff --git a/sdc-os-chef/scripts/docker_run.sh b/sdc-os-chef/scripts/docker_run.sh index 08be852676..b147c812aa 100755 --- a/sdc-os-chef/scripts/docker_run.sh +++ b/sdc-os-chef/scripts/docker_run.sh @@ -64,27 +64,27 @@ DEBUG_PORT="--publish 4000:4000" [ -f /opt/config/nexus_password.txt ] && NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) || NEXUS_PASSWD=sfWU3DFVdBr7GVxB85mTYgAW [ -f /opt/config/nexus_docker_repo.txt ] && NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) || NEXUS_DOCKER_REPO=ecomp-nexus:${PORT} -while [ "$1" != "" ]; do +while test $# -gt 0; do case $1 in -r | --release ) shift - RELEASE=${1} + RELEASE=$1 ;; -e | --environment ) shift - DEP_ENV=${1} + DEP_ENV=$1 ;; -p | --port ) shift - PORT=${1} + PORT=$1 ;; - -l | --local ) - shift - LOCAL=true - ;; - -s | --skipTests ) - shift - SKIPTESTS=true + -l | --local ) + shift + LOCAL=true + ;; + -s | --skipTests ) + shift + SKIPTESTS=true ;; -h | --help ) usage @@ -94,9 +94,9 @@ while [ "$1" != "" ]; do usage exit 1 esac - shift done + [ -f /opt/config/nexus_username.txt ] && docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO -- cgit 1.2.3-korg