fix internal port of TestAPI 37/29337/2
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Fri, 24 Feb 2017 07:08:41 +0000 (15:08 +0800)
committerAric Gardner <agardner@linuxfoundation.org>
Fri, 24 Feb 2017 21:44:09 +0000 (21:44 +0000)
There are too many parameters when starting TestAPI container,
it will confuse the user. I learned that docker containers like
Jenkins and mongo the internal port is fixed, the user only need
to change the exposed port, so the same strategy is adopted here

Change-Id: I59424f5a1f36945d906975a741b631019fcbd46d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
utils/test/testapi/docker/Dockerfile
utils/test/testapi/docker/prepare-env.sh

index 86513e0..e031e19 100644 (file)
@@ -8,13 +8,12 @@
 #    $ docker build -t opnfv/testapi:tag .
 #
 # Execution:
-#    $ docker run -dti -p 8000:8000 \
-#      -e "swagger_url=http://10.63.243.17:8000" \
+#    $ docker run -dti -p 8001:8000 \
+#      -e "swagger_url=http://10.63.243.17:8001" \
 #      -e "mongodb_url=mongodb://10.63.243.17:27017/" \
-#      -e "api_port=8000"
 #      opnfv/testapi:tag
 #
-# NOTE: providing swagger_url, api_port, mongodb_url is optional.
+# NOTE: providing swagger_url, mongodb_url is optional.
 #       If not provided, it will use the default one
 #       configured in config.ini
 #
index 99433cc..9f07efb 100755 (executable)
@@ -9,8 +9,3 @@ fi
 if [ "$swagger_url" != "" ]; then
     sudo crudini --set --existing $FILE swagger base_url $swagger_url
 fi
-
-if [ "$api_port" != "" ];then
-    sudo crudini --set --existing $FILE api port $api_port
-fi
-