This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleKeys.endpoints := Map("akka-remote" -> Endpoint("tcp", 8084, Set.empty)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleKeys.system := "SomeAkkaClusterSystem" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleKeys.startCommand += "-Dhttp.address=$SINGLEMICRO_BIND_IP -Dhttp.port=$SINGLEMICRO_BIND_PORT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sys.env.get("SINGLEMICRO_BIND_IP") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
singlemicro { | |
ip = "127.0.0.1" | |
ip = ${?SINGLEMICRO_BIND_IP} | |
port = 8096 | |
port = ${?SINGLEMICRO_BIND_PORT} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BundleKeys.endpoints := Map("singlemicro" -> Endpoint("http", 0, Set(URI("http:/singlemicroservice")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka.remote { | |
netty.tcp { | |
hostname = "127.0.0.1" | |
port = 8089 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version = "1.0.0" | |
name = "singlemicro" | |
system = "singlemicro-1.0.0" | |
nrOfCpus = 1.0 | |
memory = 67108864 | |
diskSpace = 5000000 | |
roles = ["backend"] | |
components = { | |
"singlemicro-1.0.0" = { | |
description = "singlemicro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enablePlugins(JavaAppPackaging,ConductRPlugin) | |
BundleKeys.nrOfCpus := 1.0 | |
BundleKeys.memory := 10.MiB | |
BundleKeys.diskSpace := 5.MB | |
BundleKeys.endpoints := Map("singlemicro" -> Endpoint("http",0,services = Set(URI("http:/singlemicro")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.http.marshalling._ | |
import akka.http.model._ | |
import akka.http.unmarshalling.{FromResponseUnmarshaller, FromRequestUnmarshaller, Unmarshaller} | |
import akka.stream.FlowMaterializer | |
import upickle.{Writer, Reader} | |
import scala.concurrent.duration._ | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.language.implicitConversions | |