Skip to content

Commit

Permalink
fix size check to exclude mounts (NVIDIA-Merlin#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperez999 authored Feb 23, 2023
1 parent 118e108 commit ab2d3a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci/container_software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ devices=$2

exit_code=0

echo "##################"
echo "# Container size #"
echo "##################"

cd / && NUMGB=$(du -sh --exclude "raid" 2> /dev/null | grep -oE '[0-9]*G' | grep -oE '[0-9]*')
echo "Size of container is: $NUMGB GB"
if [ $NUMGB -ge 15 ]; then echo "Size of container exceeds 15GB, failed build." && exit 1 ; fi;


echo "##################"
echo "# Software check #"
echo "##################"
Expand Down

0 comments on commit ab2d3a7

Please sign in to comment.