summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaoxing <meng.zhaoxing1@zte.com.cn>2017-10-12 12:55:39 +0800
committerZhaoxing <meng.zhaoxing1@zte.com.cn>2017-10-12 12:55:39 +0800
commitd1d3a58f7cd4ef97d9f2eb90da1de13227e5035e (patch)
tree82bf264c599338b5aea87e654226aa9dcaa8d8b3
parent2f49c6932d9e2ce60531384a848546db7964833d (diff)
Fix the docker build error for vfc-nfvo-wfengine
Change-Id: Ida7fa3dbcb0419967dd5f6862a1e30cc60d6d47e Issue-id: VFC-445 Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
-rw-r--r--activiti-extension/src/main/docker/activiti-docker-build_image.sh7
-rw-r--r--wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh9
2 files changed, 11 insertions, 5 deletions
diff --git a/activiti-extension/src/main/docker/activiti-docker-build_image.sh b/activiti-extension/src/main/docker/activiti-docker-build_image.sh
index b6aefec..0e8d9d6 100644
--- a/activiti-extension/src/main/docker/activiti-docker-build_image.sh
+++ b/activiti-extension/src/main/docker/activiti-docker-build_image.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env /bin/bash
+#!/bin/bash
DIRNAME=`dirname $0`
DOCKER_BUILD_DIR=`cd $DIRNAME/; pwd`
@@ -18,14 +18,16 @@ POM_DIR="../../../"
cd ${POM_DIR}
mvncmd=$(whereis mvn | grep ^mvn |awk '{print $2}')
-echo mvncmd=$mvncmd
if [[ 1$mvncmd != 1 ]]; then
echo $mvncmd
elif [ $MVN ]; then
+ echo MVN
mvncmd=$MVN
elif [ $M2_HOME ]; then
+ echo M2_HOME
mvncmd=$M2_HOME/bin/mvn
elif [ -f "/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn" ]; then
+ echo /w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn
mvncmd="/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn"
elif [ -f "/usr/share/maven/bin/mvn" ]; then
mvncmd="/usr/share/maven/bin/mvn"
@@ -33,6 +35,7 @@ else
echo "Maven is not installed, mvncmd=$mvncmd"
exit 1
fi
+echo "mvncmd=${mvncmd}"
pwd
#VERSION=$(printf 'VER\t${project.version}\n0'|$mvncmd help:evaluate)
diff --git a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
index 224e62d..5fb0b37 100644
--- a/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
+++ b/wfenginemgrservice/src/main/docker/wfenginemgrservice-docker-build_image.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env /bin/bash
+#!/bin/bash
DIRNAME=`dirname $0`
DOCKER_BUILD_DIR=`cd $DIRNAME/; pwd`
@@ -16,16 +16,18 @@ IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
POM_DIR="../../../"
cd ${POM_DIR}
-
+env
mvncmd=$(whereis mvn | grep ^mvn |awk '{print $2}')
-echo mvncmd=$mvncmd
if [[ 1$mvncmd != 1 ]]; then
echo $mvncmd
elif [ $MVN ]; then
+ echo MVN
mvncmd=$MVN
elif [ $M2_HOME ]; then
+ echo M2_HOME
mvncmd=$M2_HOME/bin/mvn
elif [ -f "/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn" ]; then
+ echo /w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn
mvncmd="/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn"
elif [ -f "/usr/share/maven/bin/mvn" ]; then
mvncmd="/usr/share/maven/bin/mvn"
@@ -33,6 +35,7 @@ else
echo "Maven is not installed, mvncmd=$mvncmd"
exit 1
fi
+echo "mvncmd=${mvncmd}"
pwd
VERSION=$(printf 'VER\t${project.version}'|$mvncmd help:evaluate|grep '^VER'|cut -f2)
4'>294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410