Mandrag
Deploy Elixir releases to Kubernetes via Distilerry.
Requirements
Mandrag expects that you have both docker and kubectl binaries installed, and that kubectl is configured to access your deploy target.
Installation
If available in Hex, the package can be installed
by adding mandrag to your list of dependencies in mix.exs:
def deps do
[
{:mandrag, "~> 0.4.0"}
]
end
Configure
config :mandrag,
# The name of your app. Required.
app: :app_name,
# If you want to migrate, you need to specify a repo as well
repo: App.Repo,
# You can also specify a docker image, it defaults to the value speficied in :app
image: docker/app_name,
# You can specify a kube config that's applied on deploy, it default's to `kubernetes.yml`
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mandrag.