patch upstream fix for io reader (#14356)

Fixes #12850
This patch can fix the GC failure in the NFS v3 env, see https://github.com/distribution/distribution/pull/3309#issuecomment-783606968

Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
Wang Yan 2021-03-04 15:33:09 +08:00 committed by GitHub
parent afd29280ab
commit 3dfddfdf4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -20,13 +20,21 @@ cur=$PWD
# the temp folder to store distribution source code...
TEMP=`mktemp -d ${TMPDIR-/tmp}/distribution.XXXXXX`
git clone -b $VERSION https://github.com/docker/distribution.git $TEMP
git clone -b $VERSION https://github.com/distribution/distribution.git $TEMP
# add patch 2879
echo 'add patch https://github.com/docker/distribution/pull/2879 ...'
echo 'add patch https://github.com/distribution/distribution/pull/2879 ...'
cd $TEMP
wget https://github.com/docker/distribution/pull/2879.patch
wget https://github.com/distribution/distribution/pull/2879.patch
git apply 2879.patch
# add patch 3370
echo 'add patch https://github.com/distribution/distribution/pull/3370 ...'
cd $TEMP
wget https://github.com/distribution/distribution/pull/3370.patch
git apply 3370.patch
# add patch redis
git apply $cur/redis.patch
cd $cur