mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
Clair photon (#2721)
* update * update * modify docker compose * update tag * update
This commit is contained in:
parent
6fa12cdb1e
commit
7040e5ad5a
6
Makefile
6
Makefile
@ -92,7 +92,7 @@ REBUILDCLARITYFLAG=false
|
||||
NEWCLARITYVERSION=
|
||||
|
||||
#clair parameters
|
||||
CLAIRVERSION=v2.0.1
|
||||
CLAIRVERSION=v2.0.1-photon
|
||||
CLAIRFLAG=false
|
||||
CLAIRDBVERSION=9.6.3-photon
|
||||
|
||||
@ -243,7 +243,7 @@ ifeq ($(NOTARYFLAG), true)
|
||||
DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSENOTARYFILENAME)
|
||||
endif
|
||||
ifeq ($(CLAIRFLAG), true)
|
||||
DOCKERSAVE_PARA+= quay.io/coreos/clair:$(CLAIRVERSION) vmware/postgresql:$(CLAIRDBVERSION)
|
||||
DOCKERSAVE_PARA+= vmware/clair:$(CLAIRVERSION) vmware/postgresql:$(CLAIRDBVERSION)
|
||||
PACKAGE_OFFLINE_PARA+= $(HARBORPKG)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
PACKAGE_ONLINE_PARA+= $(HARBORPKG)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSECLAIRFILENAME)
|
||||
@ -368,7 +368,7 @@ package_offline: compile build modify_sourcefiles modify_composefile
|
||||
fi
|
||||
@if [ "$(CLAIRFLAG)" = "true" ] ; then \
|
||||
echo "pulling claiy and postgres..."; \
|
||||
$(DOCKERPULL) quay.io/coreos/clair:$(CLAIRVERSION); \
|
||||
$(DOCKERPULL) vmware/clair:$(CLAIRVERSION); \
|
||||
$(DOCKERPULL) vmware/postgresql:$(CLAIRDBVERSION); \
|
||||
fi
|
||||
|
||||
|
@ -35,7 +35,7 @@ services:
|
||||
networks:
|
||||
- harbor-clair
|
||||
container_name: clair
|
||||
image: quay.io/coreos/clair:v2.0.1
|
||||
image: vmware/clair:v2.0.1-photon
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgres
|
||||
|
13
make/photon/clair/Dockerfile
Normal file
13
make/photon/clair/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM library/photon:1.0
|
||||
|
||||
RUN tdnf install -y git bzr rpm xz \
|
||||
&& mkdir /clair2.0.1/
|
||||
|
||||
COPY clair /clair2.0.1/
|
||||
|
||||
VOLUME /config
|
||||
EXPOSE 6060 6061
|
||||
|
||||
RUN chmod u+x /clair2.0.1/clair
|
||||
|
||||
ENTRYPOINT ["/clair2.0.1/clair"]
|
Loading…
Reference in New Issue
Block a user