cluster/tools/rook-s3cmd-config: build using bazel

This turns the existing script into a proper sh_binary, and injects
dependencies (kubectl and jq) as deps into it.

This change also pulls in BUILDfiles for jq, and a dep (oniguruma) into
//third_party, and adds buildable external repositories for them.

The jq/oniguruma BUILDfiles are lifted from
https://github.com/attilaolah/bazel-tools/.

Change-Id: If2e548bd60a8fd34e4f3be767ae59c6b2f2286d9
diff --git a/WORKSPACE b/WORKSPACE
index 268259b..e7f58fc 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -306,6 +306,28 @@
 )
 
 go_image_repositories()
+
+# oniguruma, with build from //third_party/oniguruma
+
+http_archive(
+    name = "com_github_kkos_oniguruma",
+    urls = ["https://github.com/kkos/oniguruma/releases/download/v6.9.5_rev1/onig-6.9.5_rev1.tar.gz"],
+    strip_prefix = "onig-6.9.5",
+    sha256 = "d33c849d1672af227944878cefe0a8fcf26fc62bedba32aa517f2f63c314a99e",
+    build_file = "@hscloud//third_party/oniguruma:BUILD.external",
+)
+
+# jq, with build from //third_party/jq
+
+http_archive(
+    name = "com_github_stedolan_jq",
+    urls = ["https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz"],
+    strip_prefix = "jq-1.6",
+    sha256 = "5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72",
+    build_file = "@hscloud//third_party/jq:BUILD.external",
+)
+
+
 # Go repositories
 
 go_repository(