Przeglądaj źródła

Fix Reverse order (#9069)

* Add --reverse-order option and switch order after each run on citrine

* Move reverse ordering to startup script since we run shutdown script twice
Nate 1 rok temu
rodzic
commit
09cca5aa45
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      toolset/continuous/tfb-startup.sh

+ 6 - 0
toolset/continuous/tfb-startup.sh

@@ -25,6 +25,12 @@ docker build -t techempower/tfb \
   --build-arg USER_ID=$(id -u) \
   --build-arg GROUP_ID=$(id -g) .
 
+if [ -z "$TFB_RUN_ORDER" ]; then
+  export TFB_RUN_ORDER="reverse"
+else
+  unset TFB_RUN_ORDER
+fi
+
 echo "running tfb docker image"
 docker run \
   -e USER_ID=$(id -u) \