This change removes the healthcheck endpoints from the frontend and frontend_identity docker images so these can now reach the app containers which serve there own healthchecks.
We also update the publish scripts to be a bit neater and use functions.
[x] Update the consuming services reference to the build images, for the content service and identity (frontend), (content uses default variables for tag, identity overrides these).
[x] Optionally: remove the default references to the old container images from the terraform-aws-ecs-service
[x] Update the staging environment for the content and identity services to use the new container image after ensuring the services serve healthcheck endpoints, needs:
Healthchecks that really test if the application is running protect us from broken deployments going out, and ensure the application container is really serving requests when marked as healthy.
What's changing and why?
This change removes the healthcheck endpoints from the frontend and frontend_identity docker images so these can now reach the app containers which serve there own healthchecks.
We also update the publish scripts to be a bit neater and use functions.
See https://github.com/wellcomecollection/wellcomecollection.org/issues/10545 for the motivation for this change.
In order to use this change, we should:
760097843905.dkr.ecr.eu-west-1.amazonaws.com/uk.ac.wellcome/nginx_frontend:b809c6ef4363ff0cbac8da7ff5e80d865cfcd008
760097843905.dkr.ecr.eu-west-1.amazonaws.com/uk.ac.wellcome/nginx_frontend_identity:b809c6ef4363ff0cbac8da7ff5e80d865cfcd008
How to test
How can we measure success?
Healthchecks that really test if the application is running protect us from broken deployments going out, and ensure the application container is really serving requests when marked as healthy.