Go to file
Alexis Couvreur be7ace0e05 perf(providers): retrieve state on start instead of assuming starting (#350)
When an instance does not exist yet and needs to be started, its status is not assumed to be starting anymore.

Instead, the statue will be retrieved from the provider. This changes one thing, it's that you may be able to start and access your services instantly because they'll be instantly seen as ready.

With this change, you might want to make sure that your containers have a proper healthcheck used to determine when the application is able to process incoming requests.

* refactor: add interface guards

* refactor(providers): remove instance.State as a return value from Stop and Start

* test(e2e): add healthcheck on nginx container

Because now the container check is so fast, we need to add a delay on which the container is considered started and healthy to have a proper waiting page.

* fix(tests): using acouvreur/whoami:v1.10.2 instead of containous/whoami:v1.5.0

This image simply retrieve the curl binary from curlimages/curl:8.8.0 to be able to add proper docker healthcheck commands.

Once this is merged with traefik/whoami, I'll update back to the original image.

See https://github.com/traefik/whoami/issues/33
2024-07-08 00:10:39 -04:00
2022-11-02 23:15:06 -04:00
2023-03-28 21:31:22 -04:00
2022-10-04 14:41:39 +00:00
2023-08-25 18:11:01 -04:00
2023-09-13 10:46:42 -04:00

Sablier

GitHub license GitHub contributors GitHub issues GitHub pull-requests PRs Welcome

GoDoc Latest Build Go Report Go Version Latest Release Latest PreRelease

An free and open-source software to start workloads on demand and stop them after a period of inactivity.

Demo

Either because you don't want to overload your raspberry pi or because your QA environment gets used only once a week and wastes resources by keeping your workloads up and running, Sablier is a project that might interest you.

🎯 Features

📝 Documentation

See the documentation here

Contributors

Alexis Couvreur
Alexis Couvreur

💬 🐛 💻 📖 💡 🤔
Matthias Schneider
Matthias Schneider

💻 📖 👀
Alexandre HILTCHER
Alexandre HILTCHER

💻 🤔
tandy1000
tandy1000

📖 🤔
Sam R.
Sam R.

📖
Stanislas Bruhière
Stanislas Bruhière

💻 🤔
Jenn Wheeler
Jenn Wheeler

💻 🤔
Romain Duminil
Romain Duminil

💻 🤔
Add your contributions
Description
Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
Readme AGPL-3.0 60 MiB
Languages
Go 89.4%
HTML 9.9%
Makefile 0.6%
Dockerfile 0.1%