* 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>
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>
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>
Mount the ca bunlder into registry controller, and add them into os
trust store that resolves the problem of garabe collection on ca
enabled registry.
Signed-off-by: wang yan <wangyan@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>
Make necessary change to make things work with photon 2.0 docker image.
Remove distro-sync to mitigate the build issue and add `--pull` to docker build
command to make sure the latest photon:2.0 will be pulled during build process.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
In some user's environment, there's local object storage hosted with
self-signed certificate.
Because registry process runs in a photon container, it has to trust
the certificate in the photon level such that the registry can access
the storage service.
This commit updates the registry image to append custom cert to the root
bundle when the container is started. And make the customer cert
configurable in `harbor.cfg`
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
docker regsitry. This version has the API to call regsitry GC with jobservice
secret. Seprates it into a standalone container as do not want to invoke two
processes in one container.
It needs to mount the registry storage into this container in order to do GC,
and needs to copy the registry binary into it.
This commit fixes a recently discovered issue on Kubernetes #4496
It make necessary to avoid calling `chown` to config files during the
bootstrap of the containers.
The following are done to avoid travis-ci failing due to too much log
size.
1) Update Makefile and scripts to make go build less verbose.
2) Make tdnf less verbose
This change involves using non-root user to run the process of the
docker images. Also made update in Dockerfile to make the containers
support "read-only" and introduce "HEALTHCHECK". Note the "read-only"
options are not enabled in docker-compose, to cover the very corner
case when user wants to update the container filesystem manually.
Remove read only option from docker-compose template by default