From f48b6b078ffe70ccfaa47e31493e9fa29c0cdc50 Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Thu, 19 Mar 2020 16:43:57 -0700 Subject: [PATCH 1/2] Tweak smoketest.sh script and fix typos in MP quickstart readme --- etc/scripts/smoketest.sh | 8 ++++++-- examples/quickstarts/helidon-quickstart-mp/README.md | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/etc/scripts/smoketest.sh b/etc/scripts/smoketest.sh index bfca4f90400..294c723b0c8 100755 --- a/etc/scripts/smoketest.sh +++ b/etc/scripts/smoketest.sh @@ -84,7 +84,6 @@ $(basename ${0}) [ --staged ] [ --giturl=URL ] [ --clean ] [--help ] --version=V EOF } -readonly SCRATCH=$(mktemp -d /var/tmp/helidon-smoke.XXXX) # parse command line args ARGS=( "${@}" ) @@ -138,6 +137,10 @@ fi readonly SCRIPT_DIR=$(dirname ${SCRIPT_PATH}) +readonly DATESTAMP=$(date +%Y-%m-%d) +mkdir -p /var/tmp/helidon-smoke +readonly SCRATCH=$(mktemp -d /var/tmp/helidon-smoke/${VERSION}-${DATESTAMP}.XXXX) + if [ -z "${GIT_URL}" ] ; then cd ${SCRIPT_DIR} GIT_URL=$(git remote get-url origin) @@ -176,6 +179,7 @@ full(){ waituntilready() { # Give app a chance to start --retry will retry until it is up + # --retry-connrefused requires curl 7.51.0 or newer sleep 3 curl -s --retry-connrefused --retry 3 -X GET http://localhost:8080/health/live echo @@ -260,7 +264,7 @@ echo "===== Log file: ${OUTPUTFILE} =====" if [ ! -z "${CLEAN_MVN_REPO}" -a -d "${LOCAL_MVN_REPO}" ]; then echo "===== Cleaning release from local maven repository ${LOCAL_MVN_REPO} =====" - find -d ${LOCAL_MVN_REPO}/io/helidon -name ${VERSION} -type d -exec rm -rf {} \; + find ${LOCAL_MVN_REPO}/io/helidon -depth -name ${VERSION} -type d -exec rm -rf {} \; fi # Invoke command diff --git a/examples/quickstarts/helidon-quickstart-mp/README.md b/examples/quickstarts/helidon-quickstart-mp/README.md index adf1cd62b46..fb97113f3f8 100644 --- a/examples/quickstarts/helidon-quickstart-mp/README.md +++ b/examples/quickstarts/helidon-quickstart-mp/README.md @@ -93,7 +93,7 @@ See https://github.com/oracle/helidon-build-tools/tree/master/helidon-maven-plug Start the application: ``` -./target/helidon-quickstart-se/bin/start +./target/helidon-quickstart-mp/bin/start ``` ### Multi-stage Docker build @@ -101,17 +101,17 @@ Start the application: Build the "jlink" Docker Image ``` -docker build -t helidon-quickstart-se-jlink -f Dockerfile.jlink . +docker build -t helidon-quickstart-mp-jlink -f Dockerfile.jlink . ``` Start the application: ``` -docker run --rm -p 8080:8080 helidon-quickstart-se-jlink:latest +docker run --rm -p 8080:8080 helidon-quickstart-mp-jlink:latest ``` See the start script help: ``` -docker run --rm helidon-quickstart-se-jlink:latest --help +docker run --rm helidon-quickstart-mp-jlink:latest --help ``` From e94c5de6b06615a32ab13bbf6ea7725b2609d716 Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Fri, 20 Mar 2020 10:51:57 -0700 Subject: [PATCH 2/2] Update copyright --- etc/scripts/smoketest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/scripts/smoketest.sh b/etc/scripts/smoketest.sh index 294c723b0c8..05d1cf9e116 100755 --- a/etc/scripts/smoketest.sh +++ b/etc/scripts/smoketest.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2019, 2020 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.