diff --git a/Makefile b/Makefile index d07fe0def..a607eca4a 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ REGISTRYPROJECTNAME=vmware DEVFLAG=true NOTARYFLAG=false REGISTRYVERSION=2.6.1-photon -NGINXVERSION=1.11.5-patched +NGINXVERSION=1.11.13 PHOTONVERSION=1.0 NOTARYVERSION=server-0.5.0 NOTARYSIGNERVERSION=signer-0.5.0 @@ -219,7 +219,7 @@ DOCKERSAVE_PARA=$(DOCKERIMAGENAME_ADMINSERVER):$(VERSIONTAG) \ $(DOCKERIMAGENAME_LOG):$(VERSIONTAG) \ $(DOCKERIMAGENAME_DB):$(VERSIONTAG) \ $(DOCKERIMAGENAME_JOBSERVICE):$(VERSIONTAG) \ - vmware/nginx:$(NGINXVERSION) vmware/registry:$(REGISTRYVERSION) \ + vmware/nginx-photon:$(NGINXVERSION) vmware/registry:$(REGISTRYVERSION) \ photon:$(PHOTONVERSION) PACKAGE_OFFLINE_PARA=-zcvf harbor-offline-installer-$(GITTAGVERSION).tgz \ $(HARBORPKG)/common/templates $(HARBORPKG)/$(DOCKERIMGFILE).$(VERSIONTAG).tar.gz \ @@ -359,7 +359,7 @@ package_offline: compile build modify_sourcefiles modify_composefile @echo "pulling nginx and registry..." @$(DOCKERPULL) vmware/registry:$(REGISTRYVERSION) - @$(DOCKERPULL) vmware/nginx:$(NGINXVERSION) + @$(DOCKERPULL) vmware/nginx-photon:$(NGINXVERSION) @if [ "$(NOTARYFLAG)" = "true" ] ; then \ echo "pulling notary and harbor-notary-db..."; \ $(DOCKERPULL) vmware/notary-photon:$(NOTARYVERSION); \ diff --git a/make/common/nginx/Dockerfile b/make/common/nginx/Dockerfile new file mode 100644 index 000000000..64ab04d3a --- /dev/null +++ b/make/common/nginx/Dockerfile @@ -0,0 +1,11 @@ +FROM library/photon:1.0 + +RUN tdnf install -y nginx \ + && ln -sf /dev/stdout /var/log/nginx/access.log \ + && ln -sf /dev/stderr /var/log/nginx/error.log \ + && mkdir -p /var/run + +EXPOSE 80 +STOPSIGNAL SIGQUIT + +CMD ["nginx", "-g", "daemon off;"] diff --git a/make/docker-compose.tpl b/make/docker-compose.tpl index 8994ba776..f7e8a6fc8 100644 --- a/make/docker-compose.tpl +++ b/make/docker-compose.tpl @@ -110,7 +110,7 @@ services: syslog-address: "tcp://127.0.0.1:1514" tag: "jobservice" proxy: - image: vmware/nginx:1.11.5-patched + image: vmware/nginx-photon:1.11.13 container_name: nginx restart: always volumes: