aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2018-12-14 08:19:35 -0600
committerKelley Spoon <kelley.spoon@linaro.org>2018-12-21 16:36:29 -0600
commit899bf9c14fc6d5cd4ed8bad908907049a6adac9f (patch)
tree69cd3e1ec2aede9356fc412394d7630d3da794be
parent1664357090f045771628cdd199d6fb46d58a2f68 (diff)
testing: add test_run.sh script
This change adds in a script that simulates the way llp is deployed in our docker-publishing playbook. It is meant to facilitate testing of a locally built image before being deployed to production. Change-Id: I74dc1e7a5ee6e388f62de2bc54caf0599cb74afd
-rwxr-xr-xci-amd64-llp-alpine/test_run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci-amd64-llp-alpine/test_run.sh b/ci-amd64-llp-alpine/test_run.sh
new file mode 100755
index 00000000..fd2767d7
--- /dev/null
+++ b/ci-amd64-llp-alpine/test_run.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+REPO=/tmp/test-llp-root
+
+mkdir -p $REPO/test-llp.linaro.org
+test \! -d $REPO/linaro-license-protection && (cd $REPO; git clone https://git.linaro.org/infrastructure/linaro-license-protection.git)
+
+docker run --name test-llp --rm -p 8080:8080 -v $REPO/test-llp.linaro.org:/srv -v $REPO/linaro-license-protection:/srv/linaro-license-protection linaro/ci-amd64-llp-alpine