mirror of https://github.com/goharbor/harbor.git
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:
parent
afd29280ab
commit
3dfddfdf4e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue