Skip to content

Testing With Docker

Chris O'Meara edited this page Jun 30, 2016 · 2 revisions

Prerequisites

You'll need a working docker installation, a copy of the Pillar source code and Scala Build Tool (sbt).

Running Cassandra

Docker Hub publishes official images for Cassandra. Running a particular version is quite simple.

% docker run --name cassandra-2.2 -p 9042:9042 -d cassandra:2.2

If you're running your containers on a different host than your Pillar tests then you will want to set your Cassandra seed address. The simplest way to accomplish this is using the PILLAR_SEED_ADDRESS environment variable. Here's how to accomplish this with Docker Machine.

% export PILLAR_SEED_ADDRESS=$(docker-machine ip)

Running Tests

Do it like this:

% sbt test
Clone this wiki locally