/activator-akka-docker

How to run an akka cluster within docker

Primary LanguageScalaOtherNOASSERTION

Akka & Docker

For a detailed description read this blog entry.

sbt docker:publishLocal
docker run --name seed-1 akka-docker:2.3.4 --seed
docker run --name seed-2 akka-docker:2.3.4 --seed <ip-of-your-seed-1>:2551
docker run --name node-1 akka-docker:2.3.4 <ip-of-your-seed-1>:2551 <ip-of-your-seed-2>:2551
docker run --name node-2 akka-docker:2.3.4 <ip-of-your-seed-1>:2551 <ip-of-your-seed-2>:2551

SBT - none docker

Of course you can run your cluster within sbt for test purposes.

sbt runSeed
sbt runNode

Setup Activator

  1. Download Typesafe Activator (or copy it over from a USB)
  2. Extract the zip and run the activator or activator.bat script from a non-interactive shell
  3. Your browser should open to the Activator UI: http://localhost:8888

Links and References