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 fix(docs-infra): fix preview server periodic clean-up (#25671) 2018-09-26 15:26:19 -07:00
dev-mode.sh ci(docs-infra): add helper scripts for running TDD in Docker 2018-08-16 10:26:12 +01:00
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 ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
preview-server-prod.sh ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
preview-server-test.sh ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
test-env.sh ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
verify-setup-and-log.sh ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
verify-setup.sh ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00