Created
July 25, 2020 12:03
-
-
Save zlandorf/80e25a20025f7b9c0d996177389fa78d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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