Mate.Driver.Docker (Mate v0.1.5) View Source

The Docker driver is used to execute commands via Docker.

Configure the image you want to use by setting it in the driver_opts Keyword list in your .mate.exs configuration file. For example:

config :mate,
  driver: Mate.Driver.Docker,
  driver_opts: [
    image: "bitwalker/alpine-elixir-phoenix"
  ]

It will mount your current repository in /repo, but it will clone your latest commit to the specified build_path. If you have a secret file you want locally you can link it from /repo. For example:

config :staging,
  server: "www.example.com",
  build_path: "/tmp/mate/my-app",
  build_secrets: %{
    "prod.secret.exs" => "/repo/config/prod.secret.exs"
  }

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.