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
77913877b9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      docker/repro

+ 5 - 1
docker/repro

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