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.3.0"}
  ]
end

Configure

config :mandrag,
  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

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mandrag.