infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Implement replica-set setup as `--health-cmd` in `ci:build` and `ci:build:image` #883

Closed make-github-pseudonymous-again closed 4 months ago

make-github-pseudonymous-again commented 4 months ago

Already implemented for ci:build:compose in #880.

See https://docs.docker.com/engine/reference/run/#healthchecks for documentation.

Not that there does not seem to be a way to set this up on startup via /docker-entrypoint-initdb.d/, see https://github.com/docker-library/mongo/issues/339.

See also https://github.com/docker-library/mongo/issues/246#issuecomment-382072843.

make-github-pseudonymous-again commented 4 months ago

Note that replica-set setup logic was initially derived from

https://github.com/zodern/meteor-up/blob/2272e108dc2c1b227398b175e81dc4b8772e1745/src/plugins/mongo/assets/templates/start.sh#L47.

make-github-pseudonymous-again commented 4 months ago

Might be impossible, due to

Let's see.

make-github-pseudonymous-again commented 4 months ago

Note that we cannot use --health-start-interval today. See: