-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information
Shengwen YU
authored
Jul 12, 2024
1 parent
1788f8b
commit a87aa44
Showing
23 changed files
with
109 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.10.18 | ||
v1.10.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM photon:4.0 | ||
FROM photon:5.0 | ||
|
||
RUN tdnf install -y sudo >>/dev/null\ | ||
&& tdnf clean all \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
FROM golang:1.15.6 | ||
FROM goharbor/golang:1.21.12 | ||
|
||
ADD . /go/src/github.com/quay/clair/ | ||
WORKDIR /go/src/github.com/quay/clair/ | ||
|
||
RUN export CLAIR_VERSION=$(git describe --tag --always --dirty) GO111MODULE=on && \ | ||
go get github.com/PuerkitoBio/goquery && \ | ||
go build -ldflags "-X github.com/quay/clair/pkg/version.Version=$CLAIR_VERSION" ./cmd/clair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM photon:4.0 | ||
|
||
ARG GOVERSION | ||
|
||
# install cgo-related dependencies && git | ||
# official golang build from standard Debian, while photon os do not install git as default | ||
RUN tdnf install build-essential git gpg -y | ||
|
||
ENV PATH /usr/local/go/bin:$PATH | ||
|
||
ENV GOLANG_VERSION ${GOVERSION} | ||
|
||
RUN set eux; \ | ||
url="https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz"; \ | ||
sha256="904b924d435eaea086515bc63235b192ea441bd8c9b198c507e85009e6e4c7f0"; \ | ||
wget -O go.tgz.asc "$url.asc"; \ | ||
wget -O go.tgz "$url"; \ | ||
echo "$sha256 *go.tgz" | sha256sum -c -; \ | ||
# https://github.com/golang/go/issues/14739#issuecomment-324767697 | ||
GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; \ | ||
# https://www.google.com/linuxrepositories/ | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 'EB4C 1BFD 4F04 2F6D DDCC EC91 7721 F63B D38B 4796'; \ | ||
# let's also fetch the specific subkey of that key explicitly that we expect "go.tgz.asc" to be signed by, just to make sure we definitely have it | ||
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys '2F52 8D36 D67B 69ED F998 D857 78BD 6547 3CB3 BD13'; \ | ||
gpg --batch --verify go.tgz.asc go.tgz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" go.tgz.asc; \ | ||
tar -C /usr/local -xzf go.tgz; \ | ||
rm go.tgz; \ | ||
go version | ||
|
||
ENV GOPATH /go | ||
ENV PATH $GOPATH/bin:$PATH | ||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" | ||
WORKDIR $GOPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/goharbor/harbor/src | ||
|
||
go 1.17 | ||
go 1.21 | ||
|
||
replace github.com/goharbor/harbor => ../ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters