angular-cn/aio/aio-builds-setup/dockerbuild
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
..
cronjobs fix(docs-infra): fix preview server periodic clean-up (#25671) 2018-09-26 15:26:19 -07:00
dnsmasq ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
logrotate ci(docs-infra): rename 'upload-server' to 'preview-server' 2018-08-16 10:26:13 +01:00
nginx ci(docs-infra): show custom 404 page on preview server (for consistency) (#26199) 2018-10-05 15:39:02 -07:00
scripts-js build(docs-infra): upgrade all JS dependencies to latest versions (#36837) 2020-05-05 17:46:45 -07:00
scripts-sh test(docs-infra): check TLS certificates as part of preview server's health check (#36837) 2020-05-05 17:46:45 -07:00
.dockerignore ci(aio): add initial implementation for aio-builds setup 2017-03-07 18:24:45 -08:00
Dockerfile build(docs-infra): upgrade preview server Docker image to Debian 10 (buster) (#36837) 2020-05-05 17:46:45 -07:00