mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Merge pull request #3482 from yixingjia/ossclairupdate
Update Clair base images
This commit is contained in:
commit
f7967e22ab
6
Makefile
6
Makefile
@ -92,7 +92,7 @@ REBUILDCLARITYFLAG=false
|
||||
NEWCLARITYVERSION=
|
||||
|
||||
#clair parameters
|
||||
CLAIRVERSION=v2.0.1-photon
|
||||
CLAIRVERSION=v2.0.1
|
||||
CLAIRFLAG=false
|
||||
CLAIRDBVERSION=9.6.5-photon
|
||||
|
||||
@ -247,7 +247,7 @@ ifeq ($(NOTARYFLAG), true)
|
||||
DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSENOTARYFILENAME)
|
||||
endif
|
||||
ifeq ($(CLAIRFLAG), true)
|
||||
DOCKERSAVE_PARA+= vmware/clair:$(CLAIRVERSION) vmware/postgresql:$(CLAIRDBVERSION)
|
||||
DOCKERSAVE_PARA+= vmware/clair-photon:$(CLAIRVERSION) vmware/postgresql:$(CLAIRDBVERSION)
|
||||
PACKAGE_OFFLINE_PARA+= $(HARBORPKG)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
PACKAGE_ONLINE_PARA+= $(HARBORPKG)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
@ -375,7 +375,7 @@ package_offline: compile build modify_sourcefiles modify_composefile
|
||||
fi
|
||||
@if [ "$(CLAIRFLAG)" = "true" ] ; then \
|
||||
echo "pulling claiy and postgres..."; \
|
||||
$(DOCKERPULL) vmware/clair:$(CLAIRVERSION); \
|
||||
$(DOCKERPULL) vmware/clair-photon:$(CLAIRVERSION); \
|
||||
$(DOCKERPULL) vmware/postgresql:$(CLAIRDBVERSION); \
|
||||
fi
|
||||
@if [ "$(MIGRATORFLAG)" = "true" ] ; then \
|
||||
|
@ -35,7 +35,7 @@ services:
|
||||
networks:
|
||||
- harbor-clair
|
||||
container_name: clair
|
||||
image: vmware/clair:v2.0.1-photon
|
||||
image: vmware/clair-photon:v2.0.1
|
||||
restart: always
|
||||
cpu_quota: 150000
|
||||
depends_on:
|
||||
|
@ -1,6 +1,9 @@
|
||||
FROM library/photon:1.0
|
||||
FROM vmware/photon:1.0
|
||||
|
||||
RUN tdnf install -y git bzr rpm xz \
|
||||
RUN tdnf distro-sync -y \
|
||||
&& tdnf erase vim -y \
|
||||
&& tdnf install -y git bzr rpm xz \
|
||||
&& tdnf clean all \
|
||||
&& mkdir /clair2.0.1/
|
||||
|
||||
COPY clair /clair2.0.1/
|
||||
|
Loading…
Reference in New Issue
Block a user