* bump up version to 1.10.19
upgrade golang to 1.22.5
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: add golang Dockerfile to build goharbor/golang image
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* change "go get" to "go install" as it requires in golang:1.22
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: go install golint
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: update go version in build-package.yml
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: upgrade golang to 1.22.5 to build clair and clair-adapter
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: resolve the permission denied issue
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* debug: remove DNS setting for docker v20
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix "groupadd: group 'postgres' already exists" error when building db base
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* bump up to photon:5.0 mainly to resolve /lib/libc.so.6: version `GLIBC_2.34' not found
use mariadb-18.2.6.tgz as the old one is 404
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: use goharbor/golang 1.21.12
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: update golang version in echo log message when building clair binary and clair adapter
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* fix: update chart files URL due to 404
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
---------
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
* Replace python script with node script for portal Dockerfile
Signed-off-by: AllForNothing <sshijun@vmware.com>
* Fix build db base error in build_base_images
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
---------
Signed-off-by: AllForNothing <sshijun@vmware.com>
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
Co-authored-by: Yang Jiao <jiaoya@vmware.com>
- create API folder
- move harbor API swagger file to API/harbor
- add scanner adapter open API swagger file to API/scanner
- update protal build Dockerfile
- update swagger explorer build command in Makefile
Signed-off-by: Steven Zou <szou@vmware.com>
1, replace the UIVERSION file with ldflags, which is generarted by make to inject into the UI core.
2, inject additional ldflags for harbor compiler
Signed-off-by: wang yan <wangyan@vmware.com>
1. Upgrade clair adapter to v1.0.0.
2. Make the clair adapter which installed by harbor immutable and using internal registry address.
3. Add support to build clair adapter image from binary.
4. Switch to ScannerPull action when make authorization for the scan request.
Signed-off-by: He Weiwei <hweiwei@vmware.com>
Bump up the golang for compiling the binaries to 1.12.12
This commit also includes some minor changes to Makefile to fix issue in
building the binary files.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
1. Introduce NPM_REGISTRY in Makefile to support npm registry
configuration when build portal image.
2. Install npm pkgs before copy portal src so that build cache works for
npm install in portal image.
Signed-off-by: He Weiwei <hweiwei@vmware.com>
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 bumps up the version of Go to compile the code to v1.12.5,
and shifts to go.mod for managing depedency.
Some code from "harbor/tests" to "harbor/src/testing" to avoid depedency
loop of modules.
Note that in short term we will still vendor the dependency.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is to build a regsitry bases on v2.7.1 code and introduces
an fix on issue #2819, this is a P0 bug on v2.7.1 which causes GCS doesn't
work well on v2.7.1
For more details, refer to https://github.com/docker/distribution/pull/2821
Signed-off-by: wang yan <wangyan@vmware.com>
mount a temp dir input for all input files and configs
generated secrets file stored in data volumns keys dir
certs file stored in data volumns nginx dir
Signed-off-by: Qian Deng <dengq@vmware.com>