Merge pull request #12557 from ninjadq/rm_expose_port

Remove expose port in dockerfiles
This commit is contained in:
Qian Deng 2020-08-06 14:29:51 +08:00 committed by GitHub
commit 26dc5d1b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 0 additions and 14 deletions

View File

@ -19,6 +19,5 @@ WORKDIR /home/chart
ENTRYPOINT ["./docker-entrypoint.sh"] ENTRYPOINT ["./docker-entrypoint.sh"]
VOLUME ["/chart_storage"] VOLUME ["/chart_storage"]
EXPOSE 9999
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS http://127.0.0.1:9999/health || curl -k -sS https://127.0.0.1:9443/health || exit 1 HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS http://127.0.0.1:9999/health || curl -k -sS https://127.0.0.1:9443/health || exit 1

View File

@ -11,8 +11,6 @@ RUN chown -R clair-adapter:clair-adapter /etc/pki/tls/certs \
&& chown clair-adapter:clair-adapter /home/clair-adapter/entrypoint.sh && chmod u+x /home/clair-adapter/entrypoint.sh \ && chown clair-adapter:clair-adapter /home/clair-adapter/entrypoint.sh && chmod u+x /home/clair-adapter/entrypoint.sh \
&& chown clair-adapter:clair-adapter /home/clair-adapter/install_cert.sh && chmod u+x /home/clair-adapter/install_cert.sh && chown clair-adapter:clair-adapter /home/clair-adapter/install_cert.sh && chmod u+x /home/clair-adapter/install_cert.sh
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS http://127.0.0.1:8080/probe/healthy || curl -k -sS https://127.0.0.1:8443/probe/healthy || exit 1 HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS http://127.0.0.1:8080/probe/healthy || curl -k -sS https://127.0.0.1:8443/probe/healthy || exit 1
USER clair-adapter USER clair-adapter

View File

@ -9,8 +9,6 @@ COPY ./make/photon/common/install_cert.sh /home/clair/
VOLUME /config VOLUME /config
EXPOSE 6060 6061
RUN chown -R clair:clair /etc/pki/tls/certs && chown -R clair:clair /home/clair \ RUN chown -R clair:clair /etc/pki/tls/certs && chown -R clair:clair /home/clair \
&& chmod u+x /home/clair/clair \ && chmod u+x /home/clair/clair \
&& chmod u+x /home/clair/docker-entrypoint.sh \ && chmod u+x /home/clair/docker-entrypoint.sh \

View File

@ -15,5 +15,4 @@ RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /doc
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
HEALTHCHECK CMD ["/docker-healthcheck.sh"] HEALTHCHECK CMD ["/docker-healthcheck.sh"]
EXPOSE 5432
USER postgres USER postgres

View File

@ -23,6 +23,4 @@ HEALTHCHECK CMD netstat -ltun|grep 10514
VOLUME /var/log/docker/ /run/ /etc/logrotate.d/ VOLUME /var/log/docker/ /run/ /etc/logrotate.d/
EXPOSE 10514
CMD /usr/local/bin/start.sh CMD /usr/local/bin/start.sh

View File

@ -4,8 +4,6 @@ FROM ${harbor_base_namespace}/harbor-nginx-base:${harbor_base_image_version}
VOLUME /var/cache/nginx /var/log/nginx /run VOLUME /var/cache/nginx /var/log/nginx /run
EXPOSE 8080
STOPSIGNAL SIGQUIT STOPSIGNAL SIGQUIT
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080 || exit 1 HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080 || exit 1

View File

@ -11,5 +11,4 @@ RUN chmod +x /usr/bin/docker-healthcheck \
HEALTHCHECK CMD ["docker-healthcheck"] HEALTHCHECK CMD ["docker-healthcheck"]
USER redis USER redis
EXPOSE 6379
CMD ["redis-server", "/etc/redis.conf"] CMD ["redis-server", "/etc/redis.conf"]

View File

@ -18,4 +18,3 @@ USER harbor
ENTRYPOINT ["/home/harbor/entrypoint.sh"] ENTRYPOINT ["/home/harbor/entrypoint.sh"]
VOLUME ["/storage"] VOLUME ["/storage"]
EXPOSE 5000

View File

@ -16,8 +16,6 @@ RUN chown -R scanner:scanner /etc/pki/tls/certs \
&& chown scanner:scanner /home/scanner/bin/scanner-trivy && chmod u+x /home/scanner/bin/scanner-trivy \ && chown scanner:scanner /home/scanner/bin/scanner-trivy && chmod u+x /home/scanner/bin/scanner-trivy \
&& chown scanner:scanner /home/scanner/install_cert.sh && chmod u+x /home/scanner/install_cert.sh && chown scanner:scanner /home/scanner/install_cert.sh && chmod u+x /home/scanner/install_cert.sh
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl --fail -s http://127.0.0.1:8080/probe/healthy || curl -k --fail -s https://127.0.0.1:8443/probe/healthy || exit 1 HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl --fail -s http://127.0.0.1:8080/probe/healthy || curl -k --fail -s https://127.0.0.1:8443/probe/healthy || exit 1
ENV TRIVY_VERSION=${trivy_version} ENV TRIVY_VERSION=${trivy_version}