Browse Source

Implement a flag to allow for log parsing on the host instead of in a docker

Ian Goldberg 1 year ago
parent
commit
a03179c626
1 changed files with 5 additions and 1 deletions
  1. 5 1
      repro

+ 5 - 1
repro

@@ -65,7 +65,11 @@ run() {
 # have perl installed on the host.
 # Arguments: a list of logfiles
 parse() {
-    cat $* | docker exec -w /root -i floram_p0 ./parse_logs
+    if [ "$FLORAM_PARSE_HOST" = "1" ]; then
+        ./parse_logs $*
+    else
+        cat $* | docker exec -w /root -i floram_p0 ./parse_logs
+    fi
 }
 
 # A very small kick-the-tires test to ensure everything compiled and