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
658bd5ab41
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Docker/repro

+ 5 - 1
Docker/repro

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