mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 13:45:20 +01:00
patch regsitry fix of issue 2553
This commit is target to fix harbor issue #9186, which root cause is mentioned by https://github.com/docker/distribution/issues/2553, and fixed by https://github.com/docker/distribution/pull/2879. As the latest distribution release(v2.7.1) does not contain this fix, but it will break the quota migraion process on S3 storage, we have to path this fix into Harbor regsitry binary. [Tag Version] It uses the issue number(2553) as the tag naming convention, like v2.7.1-patch-2553, means that we patch the fix of issue 2553 into v2.7.1. [Note] So far, this fix is only targets on docker regsitry v2.7.1. If the registry has this fix in new release, we'll move on. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
7844ca0a2f
commit
3cf7e702be
2
Makefile
2
Makefile
@ -97,7 +97,7 @@ VERSIONFILENAME=UIVERSION
|
|||||||
PREPARE_VERSION_NAME=versions
|
PREPARE_VERSION_NAME=versions
|
||||||
|
|
||||||
#versions
|
#versions
|
||||||
REGISTRYVERSION=v2.7.1-patch-2819
|
REGISTRYVERSION=v2.7.1-patch-2819-2553
|
||||||
NGINXVERSION=$(VERSIONTAG)
|
NGINXVERSION=$(VERSIONTAG)
|
||||||
NOTARYVERSION=v0.6.1
|
NOTARYVERSION=v0.6.1
|
||||||
CLAIRVERSION=v2.0.9
|
CLAIRVERSION=v2.0.9
|
||||||
|
@ -22,6 +22,13 @@ cur=$PWD
|
|||||||
TEMP=`mktemp -d /$TMPDIR/distribution.XXXXXX`
|
TEMP=`mktemp -d /$TMPDIR/distribution.XXXXXX`
|
||||||
git clone -b $VERSION https://github.com/docker/distribution.git $TEMP
|
git clone -b $VERSION https://github.com/docker/distribution.git $TEMP
|
||||||
|
|
||||||
|
# add patch 2879
|
||||||
|
echo 'add patch https://github.com/docker/distribution/pull/2879 ...'
|
||||||
|
cd $TEMP
|
||||||
|
wget https://github.com/docker/distribution/pull/2879.patch
|
||||||
|
git apply 2879.patch
|
||||||
|
cd $cur
|
||||||
|
|
||||||
echo 'build the registry binary bases on the golang:1.11...'
|
echo 'build the registry binary bases on the golang:1.11...'
|
||||||
cp Dockerfile.binary $TEMP
|
cp Dockerfile.binary $TEMP
|
||||||
docker build -f $TEMP/Dockerfile.binary -t registry-golang $TEMP
|
docker build -f $TEMP/Dockerfile.binary -t registry-golang $TEMP
|
||||||
|
Loading…
Reference in New Issue
Block a user