Add comments about sudo and ulimit
This commit is contained in:
parent
9e6c445faf
commit
0b2b3f44d5
2 changed files with 3 additions and 0 deletions
2
build.sh
2
build.sh
|
@ -53,5 +53,7 @@ dockerbuild()
|
||||||
if [ ! -z "$BUILD_IN_DOCKER" ]; then
|
if [ ! -z "$BUILD_IN_DOCKER" ]; then
|
||||||
dockerbuild $args
|
dockerbuild $args
|
||||||
else
|
else
|
||||||
|
# Run under sudo so we can set ulimit
|
||||||
|
# See https://github.com/dotnet/core-eng/issues/14808
|
||||||
sudo $DIR/run-build.sh $args
|
sudo $DIR/run-build.sh $args
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -26,6 +26,7 @@ CUSTOM_BUILD_ARGS=
|
||||||
[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
|
[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages"
|
||||||
|
|
||||||
# Set max number of files open, helps avoid errors during NuGet restore
|
# Set max number of files open, helps avoid errors during NuGet restore
|
||||||
|
# See https://github.com/dotnet/core-eng/issues/14808
|
||||||
ulimit -n 16384
|
ulimit -n 16384
|
||||||
|
|
||||||
args=( )
|
args=( )
|
||||||
|
|
Loading…
Reference in a new issue