Page MenuHomeSoftware Heritage

docker: use a dedicated container for the cron-like job of swh-web
ClosedPublic

Authored by douardda on Mon, Oct 4, 5:33 PM.

Details

Summary

makes it easier to read the logs: just use:

swh-compose logs -f swh-web-cron

Depends on D6402

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Nice! Fine with the current implem as it's the same as before in a dedicated container so better.

As @vsellier suggested can't we trap the signal, i've proposed a patch.

docker/services/swh-web/entrypoint.sh
25–31

Let's trap sigterm.

This revision is now accepted and ready to land.Mon, Oct 4, 5:44 PM

improve entrypoint script to properly handle a SIGTERM

and make docker-compose restart not wait for (up to) 15s