Last active
July 25, 2020 12:05
-
-
Save zlandorf/d2f00e4f77d98afb482bd42eec253b12 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
| // defined as a singleton in kotlin | |
| object AxonServerContainer : GenericContainer<AxonServerContainer>("axoniq/axonserver") { | |
| init { | |
| withExposedPorts(8024, 8124) | |
| // the container is ready when the below log message is posted | |
| waitingFor(forLogMessage(".*Started AxonServer.*\\n", 1)) | |
| } | |
| // this will allow us to know which host/port to connect to | |
| val servers: String get() = "localhost:${getMappedPort(8124)}" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment