Mandrag
Deploy Elixir releases to Kubernetes via Distilerry and Helm
Requirements
Mandrag expects that you have docker, kubectl and helm binaries installed and configured. It also expects to you have a helm chart in the chart directory.
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.5.1"}
]
end
Configure
Mandrag doesn't require configuation, it'll introspect the parent mix config to derive configuration, but you can override those values as seen below.
config :mandrag,
# Defaults to the name of the mix project app
app: :app_name,
# You can also specify a docker repo, it defaults to the value speficied to `docker/app_name`
docker_repo: docker/app_name
TODO:
- Add default Dockerfile and Helm chart for zero conifg standup. (or mabye just create a draft pack?)
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mandrag.