Skip to content

Instantly share code, notes, and snippets.

@zlandorf
Created July 25, 2020 12:03
Show Gist options
  • Select an option

  • Save zlandorf/80e25a20025f7b9c0d996177389fa78d to your computer and use it in GitHub Desktop.

Select an option

Save zlandorf/80e25a20025f7b9c0d996177389fa78d to your computer and use it in GitHub Desktop.
object AxonServerContainer : GenericContainer<AxonServerContainer>("axoniq/axonserver") {
init {
withExposedPorts(8024, 8124)
waitingFor(forLogMessage(".*Started AxonServer.*\\n", 1))
}
override fun start() {
super.start()
System.setProperty("axon.axonserver.servers", "localhost:${getMappedPort(8124)}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment