angular-cn/aio/aio-builds-setup/dockerbuild/scripts-sh
George Kalpakas 53805f07ba test(docs-infra): check TLS certificates as part of preview server's health check (#36837)
In order to ease local development, self-signed SSL/TLS certificates are
created when building the preview server Docker image. These
certificates are valid for 365 days. Thus, it is possible for an old
certificate to be re-used past its expiration date due to Docker's
caching intermediate layers.

Previously, this would lead to hard-to-debug failures in the
`aio-health-check` and `aio-verify-setup` checks. Even after finding out
that the failures were caused by an expired certificate, it was not
obvious why that would be the case.

This commit adds an additional check to the `aio-health-check` command
that checks the certificates' expiration dates. This helps surface such
errors. It also prints a more helpful message, prompting the user to
build the Docker image with the `--no-cache` option to fix the problem
with self-signed certificates.

PR Close #36837
2020-05-05 17:46:45 -07:00
..
clean-up.sh
dev-mode.sh
health-check.sh test(docs-infra): check TLS certificates as part of preview server's health check (#36837) 2020-05-05 17:46:45 -07:00
init.sh
preview-server-prod.sh
preview-server-test.sh
test-env.sh
verify-setup-and-log.sh
verify-setup.sh