Allow users to run the scouting app with HTTPS/LDAP
I find myself needing to experiment with getting the username from the
LDAP login that happens in our HTTPS version of the scouting app. This
patch exposes a new `//scouting:https` target to let me do just that.
This patch also updates the README to let other folks know how to run
it under HTTPS/LDAP.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Ib9f4b8626cb9adfe178ded2b43677d1dcd30da4f
diff --git a/scouting/BUILD b/scouting/BUILD
index 0c2c641..2a2d0ba 100644
--- a/scouting/BUILD
+++ b/scouting/BUILD
@@ -1,4 +1,5 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+load("//tools/build_rules:apache.bzl", "apache_wrapper")
load("//tools/build_rules:js.bzl", "protractor_ts_test", "turn_files_into_runfiles")
go_binary(
@@ -44,3 +45,8 @@
on_prepare = ":scouting_test.protractor.on-prepare.js",
server = "//scouting/testing:scouting_test_servers",
)
+
+apache_wrapper(
+ name = "https",
+ binary = ":scouting",
+)