imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Add a script for running popeye and save it's reports to the reports directory
2021-06-17, Gary Kramlich
3d8767141b68
Parents
ee34cac9ca24
Children
9a4d755cb5df
Add a script for running popeye and save it's reports to the reports directory
2 files changed, 16 insertions(+), 0 deletions(-)
+1
-0
.hgignore
+15
-0
popeye
--- a/.hgignore Thu Jun 17 05:27:35 2021 -0500
+++ b/.hgignore Thu Jun 17 05:29:10 2021 -0500
@@ -2,3 +2,4 @@
.envrc
*secret*
*monitoring/
+reports/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/popeye Thu Jun 17 05:29:10 2021 -0500
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+POPEYE=$(which popeye)
+
+if [ -z "${POPEYE}" ] ; then
+ echo "failed to find popeye executable, please make sure it's on your path" >&2
+ echo "or download it from https://github.com/derailed/popeye" >&2
+ exit 1
+fi
+
+mkdir -p reports
+
+POPEYE_REPORT_DIR=$(pwd)/reports "${POPEYE}" --save --out html
+exit ${?}
+