Running xossh in the local scenario
Change-Id: I030ab16deef8b9c46db5ff15b84f4db9a49c94bd
diff --git a/xos/tools/xossh-local b/xos/tools/xossh-local
new file mode 100755
index 0000000..2fd5dad
--- /dev/null
+++ b/xos/tools/xossh-local
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# This is a stub for launching xossh in the xosproject/xos-client container.
+# It's assumed that this script is being invoked on your machine in the local scenario
+
+SCRIPT_DIR=`dirname $0`
+CERT_FILE="$PWD/$SCRIPT_DIR/../../../../../cord_profile/im_cert_chain.pem"
+CRED_FILENAME="$SCRIPT_DIR/../../../../build/platform-install/credentials/xosadmin@opencord.org"
+PASSWORD=`cat $CRED_FILENAME`
+
+docker run --rm -it --name xossh \
+ --link rcord_xos_core_1:xos-core --net xos \
+ -v "$CERT_FILE":/usr/local/share/ca-certificates/local_certs.crt \
+ xosproject/xos-client:candidate \
+ -u xosadmin@opencord.org \
+ -p "$PASSWORD" \
+ -S xos-core:50051