Commit b0154400 authored by DQ's avatar DQ
Browse files

Remove expose port in dockerfiles



The export is dynamical now because of introduce of internal TLS
Signed-off-by: default avatarDQ <dengq@vmware.com>
parent 5b4573c3
......@@ -19,6 +19,5 @@ WORKDIR /home/chart
ENTRYPOINT ["./docker-entrypoint.sh"]
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
......@@ -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/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
USER clair-adapter
......
......@@ -9,8 +9,6 @@ COPY ./make/photon/common/install_cert.sh /home/clair/
VOLUME /config
EXPOSE 6060 6061
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/docker-entrypoint.sh \
......
......@@ -15,5 +15,4 @@ RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /doc
ENTRYPOINT ["/docker-entrypoint.sh"]
HEALTHCHECK CMD ["/docker-healthcheck.sh"]
EXPOSE 5432
USER postgres
......@@ -23,6 +23,4 @@ HEALTHCHECK CMD netstat -ltun|grep 10514
VOLUME /var/log/docker/ /run/ /etc/logrotate.d/
EXPOSE 10514
CMD /usr/local/bin/start.sh
......@@ -4,8 +4,6 @@ FROM ${harbor_base_namespace}/harbor-nginx-base:${harbor_base_image_version}
VOLUME /var/cache/nginx /var/log/nginx /run
EXPOSE 8080
STOPSIGNAL SIGQUIT
HEALTHCHECK CMD curl --fail -s http://127.0.0.1:8080 || exit 1
......
......@@ -11,5 +11,4 @@ RUN chmod +x /usr/bin/docker-healthcheck \
HEALTHCHECK CMD ["docker-healthcheck"]
USER redis
EXPOSE 6379
CMD ["redis-server", "/etc/redis.conf"]
......@@ -18,4 +18,3 @@ USER harbor
ENTRYPOINT ["/home/harbor/entrypoint.sh"]
VOLUME ["/storage"]
EXPOSE 5000
......@@ -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/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
ENV TRIVY_VERSION=${trivy_version}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment