-
Notifications
You must be signed in to change notification settings - Fork 64
Testing With Docker
Chris O'Meara edited this page Jun 30, 2016
·
2 revisions
You'll need a working docker installation, a copy of the Pillar source code and Scala Build Tool (sbt).
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)
Do it like this:
% sbt test