UrbanOS-Public / divo_redis

A pre-configured docker-compose stack for a redis cluster for integration testing with Divo

Home Page:https://hexdocs.pm/divo_redis/readme.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Master Hex.pm Version

Divo Redis

A library implementing the Divo Stack behaviour, providing a pre-configured redis via docker-compose for integration testing Elixir apps. The cluster is a single-node redis compose stack that neither requires (nor accepts) no further configuration.

Requires inclusion of the Divo library in your mix project.

Installation

The package can be installed by adding divo_redis to your list of dependencies in mix.exs:

def deps do
  [
    {:divo, "~> 2.0.0"},
    {:divo_redis, "~> 1.0.0"}
  ]
end

Use

In your Mix environment exs file (i.e. config/integration.exs), include the following:

config :myapp,
  divo: [
    {DivoRedis, []}
  ]

In your integration test specify that you want to use Divo:

use Divo
...

The resulting stack will create a single-node Redis instance exposing port 6379 to the host.

Configuration

DivoRedis takes no configuration.

See Divo GitHub or Divo Hex Documentation for more instructions on using and configuring the Divo library. See antirez/redis for further documentation on using and configuring the features of these images.

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

License

Released under Apache 2 license.

About

A pre-configured docker-compose stack for a redis cluster for integration testing with Divo

https://hexdocs.pm/divo_redis/readme.html

License:Apache License 2.0


Languages

Language:Elixir 82.6%Language:Shell 17.4%