Skip to content

Commit

Permalink
Move reverse ordering to startup script since we run shutdown script …
Browse files Browse the repository at this point in the history
…twice
  • Loading branch information
NateBrady23 committed May 28, 2024
1 parent 4fd0be0 commit 920a5cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions toolset/continuous/tfb-shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,4 @@ ssh techempower@$TFB_DATABASE_HOST "$(typeset -f docker_clean); docker_clean"
echo "running docker_clean on client host"
ssh techempower@$TFB_CLIENT_HOST "$(typeset -f docker_clean); docker_clean"

if [ -z "$TFB_RUN_ORDER" ]; then
export TFB_RUN_ORDER="reverse"
else
unset TFB_RUN_ORDER
fi

echo "done with tfb-shutdown script"
6 changes: 6 additions & 0 deletions toolset/continuous/tfb-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 920a5cc

Please sign in to comment.