You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/16 20:15:34 UTC

[GitHub] csantanapr closed pull request #4: readme and uninstall sh consistency

csantanapr closed pull request #4: readme and uninstall sh consistency
URL: https://github.com/apache/incubator-openwhisk-package-deploy/pull/4
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index 4ac8d7e..6c0de6f 100644
--- a/README.md
+++ b/README.md
@@ -58,3 +58,15 @@ With the repository created, you can now deploy from it.
   -p gitUrl https://github.com/ibm-functions/blueprint-hello-world/
   -p manifestPath "src/openwhisk"
   ```
+
+# Working with repository
+
+## Deploying the Deploy Package using `installCatalog.sh`
+
+1. `git clone https://github.com/openwhisk/incubator-openwhisk-package-deploy`
+2. `cd incubator-openwhisk-package-deploy/packages`
+3. `./installCatalog.sh AUTH EDGE_HOST WSK_CLI DOCKER`
+   AUTH is your auth key.  EDGE_HOST is the OpenWhisk hostname.  WSK_CLI is location of the Openwhisk CLI binary. DOCKER is an optional param for the desired `wskdeploy` docker image, resolves to `openwhisk/wskdeploy:0.8.10` by default.
+
+> You can also remove the package using `uninstall.sh` in a similar fashion like so:
+> `./uninstall.sh AUTH EDGE_HOST WSK_CLI`
diff --git a/packages/uninstall.sh b/packages/uninstall.sh
index 3d9006b..60d3f70 100755
--- a/packages/uninstall.sh
+++ b/packages/uninstall.sh
@@ -1,17 +1,35 @@
 #!/bin/bash
+#
+# use the command line interface to uninstall standard actions deployed
+# automatically
+#
+# To run this command
+# ./uninstall.sh  <AUTH> <EDGE_HOST> <WSK_CLI>
+# AUTH and EDGE_HOST are found in $HOME/.wskprops
+# WSK_CLI="$OPENWHISK_HOME/bin/wsk"
 
 set -e
 set -x
-: ${OPENWHISK_HOME:?"OPENWHISK_HOME must be set and non-empty"}
-WSK_CLI="$OPENWHISK_HOME/bin/wsk"
 
 if [ $# -eq 0 ]
 then
-    echo "Usage: ./uninstall.sh $EDGE_HOST $AUTH"
+    echo "Usage: ./uninstall.sh <auth> <edgehost> <pathtowskcli>"
 fi
 
-EDGE_HOST="$1"
-AUTH="$2"
+AUTH="$1"
+EDGE_HOST="$2"
+WSK_CLI="$3"
+
+# If the auth key file exists, read the key in the file. Otherwise, take the
+# first argument as the key itself.
+if [ -f "$AUTH" ]; then
+    AUTH=`cat $AUTH`
+fi
+
+PACKAGE_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+export WSK_CONFIG_FILE= # override local property file to avoid namespace clashes
+
 
 echo Uninstalling Template Package \
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services