Public Repository

Last pushed: a year ago
Short Description
The akka 2.4.4 Microkernal
Full Description

This is the complete packaged needed to run an akka Bootable class. The Akka Microkernel is deprecated and the migration notes (http://doc.akka.io/docs/akka/2.4.1/project/migration-guide-2.3.x-2.4.x.html) say it will be removed.

To run the microkernel you need to place your jar in the deploy folder and override the application.conf file.

docker run -t -i --rm -p 2552:2555 -v [path to akka jar file]:/srv/akka/akka-2.4.4/deploy/deployed.jar -v [path to file]/application.conf:/srv/akka/akka-2.4.4/config/application.conf lancewf/akka-microkernel:2.4.4 /srv/akka/akka-2.4.4/bin/akka [full path of bootable class]

application.conf. The external IP address should match the IP where the docker is being ran from.

DataRetriever {
   akka {
        remote {
            netty {
                tcp {
                  hostname = [external IP address]
                  port = 2552

                  bind-hostname = "127.0.0.1" #overridden in code
                  bind-port = 2555
              }
            }
       }
   }
}

When creating the ActorSystem in the code do the below:

val actorSystem = ActorSystem("DockerActorSystem",
    ConfigFactory.load.getConfig("DataRetriever").withValue(
      "akka.remote.netty.tcp.bind-hostname",
  ConfigValueFactory.fromAnyRef(java.net.InetAddress.getLocalHost().getHostAddress())))

Link to the Microkernel
http://doc.akka.io/docs/akka/2.3.9/java/microkernel.html

DockerFile

FROM java:8
MAINTAINER lancewf

RUN apt-get -y update && apt-get install -y openssh-server
RUN apt-get install -y vim
RUN mkdir -p /srv/akka/
RUN wget -O /srv/akka/akka.zip "http://downloads.typesafe.com/akka/akka_2.11-2.4.4.zip?_ga=1.56762665.20654366.1433688580"
RUN unzip /srv/akka/akka.zip -d /srv/akka
RUN chmod 777 /srv/akka/akka-2.4.4/bin/akka
RUN mkdir /srv/akka/akka-2.4.4/logs/
Docker Pull Command
Owner
lancewf

Comments (0)