Change-Id: Ic111205c0d81d13ad9a354a4e1290e05ce65cd43
Issue-id: VFC-445
Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
"start" )
# we can modify files here, using ENV variables passed in
# "docker create" command. It can't be done during build process.
"start" )
# we can modify files here, using ENV variables passed in
# "docker create" command. It can't be done during build process.
+ exec ./run.sh ${OPENPALETTE_MSB_IP} ${OPENPALETTE_MSB_PORT}
;;
* )
# Run custom command. Thanks to this line we can still use
;;
* )
# Run custom command. Thanks to this line we can still use
RUNHOME=`cd $DIRNAME/; pwd`
echo @RUNHOME@ $RUNHOME
RUNHOME=`cd $DIRNAME/; pwd`
echo @RUNHOME@ $RUNHOME
+if [ -z "$1" ]; then
+ dwApp_msbClientConfig_msbSvrIp="127.0.0.1"
+elif [ "$OPENPALETTE_MSB_IP" ]; then
+ dwApp_msbClientConfig_msbSvrIp=$OPENPALETTE_MSB_IP
+else
+ dwApp_msbClientConfig_msbSvrIp=$1
+fi
+if [ -z "$2" ]; then
+ dwApp_msbClientConfig_msbSvrPort="80"
+elif [ "$OPENPALETTE_MSB_PORT" ]; then
+ dwApp_msbClientConfig_msbSvrPort=$OPENPALETTE_MSB_PORT
+else
+ dwApp_msbClientConfig_msbSvrPort=$2
+fi
+echo " dwApp_MSB_ADDR=${dwApp_msbClientConfig_msbSvrIp}:${dwApp_msbClientConfig_msbSvrPort}"
if [ -f "$RUNHOME/setenv.sh" ]; then
. "$RUNHOME/setenv.sh"
if [ -f "$RUNHOME/setenv.sh" ]; then
. "$RUNHOME/setenv.sh"
echo @EXT_DIRS@ $EXT_DIRS
echo ==========================================================================
echo @EXT_DIRS@ $EXT_DIRS
echo ==========================================================================
echo @JAVA@ $JAVA
echo @JAVA_CMD@
"$JAVA" $JAVA_OPTS -classpath "$CLASS_PATH" $Main_Class server "$RUNHOME/$Main_Conf"
echo @JAVA@ $JAVA
echo @JAVA_CMD@
"$JAVA" $JAVA_OPTS -classpath "$CLASS_PATH" $Main_Class server "$RUNHOME/$Main_Conf"