[ARVADOS-ORG] updated: e39050a48b416e28e88e22a74aef7ba6a9f50480

Git user git at public.curoverse.com
Mon Nov 20 17:11:44 EST 2017


Summary of changes:
 .../cmd/get-latest-package-versions.sh                 | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100755 arvados-version-server/cmd/get-latest-package-versions.sh

       via  e39050a48b416e28e88e22a74aef7ba6a9f50480 (commit)
      from  215428b08189c9d85079bd3bacc37c35b33b0455 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e39050a48b416e28e88e22a74aef7ba6a9f50480
Author: Ward Vandewege <ward at curoverse.com>
Date:   Mon Nov 20 17:11:22 2017 -0500

    Add shell script to query version server.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>

diff --git a/arvados-version-server/cmd/get-latest-package-versions.sh b/arvados-version-server/cmd/get-latest-package-versions.sh
new file mode 100755
index 0000000..51eaee4
--- /dev/null
+++ b/arvados-version-server/cmd/get-latest-package-versions.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+REVISION=$1
+
+if [[ "$REVISION" == "" ]]; then
+  echo
+  echo "Syntax: $0 git-revision"
+  echo
+  exit 1
+fi
+
+JSON=`curl -s http://versions.arvados.org/v1/commit/$REVISION`
+
+echo "versions:"
+echo "  default-docker-jobs-image-hash: "`echo $JSON | jq -r .Versions.Docker.\"arvados/jobs\"`
+echo $JSON |jq -r .Versions.Gem |grep ':' |sed -e 's/[",]//g' -e 's/:/-gem:/'
+echo $JSON |jq -r .Versions.Distribution |grep ':' |sed -e 's/[",]//g' -e 's/$/\*/'
+

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list