Prechádzať zdrojové kódy

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

Ian Goldberg 1 rok pred
rodič
commit
658bd5ab41
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      Docker/repro

+ 5 - 1
Docker/repro

@@ -108,7 +108,11 @@ run() {
 # have perl installed on the host.
 # Arguments: a list of logfiles
 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