A plug for responding to status requests.
Add a dependency to your application's mix.exs file:
defp deps do
[{:plug_status, github: "MikeAlbertFleetSolutions/plug_status"}]
endthen run mix deps.get.
defmodule MyServer do
use Plug.Builder
plug PlugStatus
# ... rest of the pipeline
endUsing a custom path is easy:
defmodule MyServer do
use Plug.Builder
plug PlugStatus, path: "/status"
# ... rest of the pipeline
enddocker build --pull --tag plug_status -f Dockerfile .docker run -it --rm -v ${WORKSPACE}/plug_status:/app -w /app plug_statusmix deps.get
mix test