Add comments about sudo and ulimit

This commit is contained in:
Daniel Plaisted 2021-11-03 14:34:41 -07:00
parent 9e6c445faf
commit 0b2b3f44d5
2 changed files with 3 additions and 0 deletions

View file

@ -53,5 +53,7 @@ dockerbuild()
if [ ! -z "$BUILD_IN_DOCKER" ]; then
dockerbuild $args
else
# Run under sudo so we can set ulimit
# See https://github.com/dotnet/core-eng/issues/14808
sudo $DIR/run-build.sh $args
fi

View file

@ -26,6 +26,7 @@ CUSTOM_BUILD_ARGS=
[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
# Set max number of files open, helps avoid errors during NuGet restore
# See https://github.com/dotnet/core-eng/issues/14808
ulimit -n 16384
args=( )