shelf_docker_shutdown 1.1.1 copy "shelf_docker_shutdown: ^1.1.1" to clipboard
shelf_docker_shutdown: ^1.1.1 copied to clipboard

Close the HttpServer on process TERM signals.

Close the HttpServer on process TERM signals.

Motivation #

You can run the shelf server in docker containers.

Because of the Dart compiler can generate single binary executables, you can get very small docker container images. It is good.

There is one problem that that containers do not shutdown smooth on docker controller's termination signal.

This library helps to do that.

Usage #

var server = await shelf_io.serve(handler, 'localhost', 8080);
await server.closeOnTermSignal();
copied to clipboard

See example folder for more details.

2
likes
150
points
139
downloads

Publisher

verified publisherkkazuo.com

Weekly Downloads

2024.08.26 - 2025.03.10

Close the HttpServer on process TERM signals.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on shelf_docker_shutdown