mirror of
https://github.com/valitydev/wb-list-manager.git
synced 2024-11-06 01:35:17 +00:00
update riak container config
This commit is contained in:
parent
cb10a162ea
commit
214ab3240a
@ -7,6 +7,7 @@ import org.testcontainers.containers.GenericContainer;
|
|||||||
import org.testcontainers.containers.wait.strategy.WaitAllStrategy;
|
import org.testcontainers.containers.wait.strategy.WaitAllStrategy;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
public class RiakContainerExtension implements BeforeAllCallback, AfterAllCallback {
|
public class RiakContainerExtension implements BeforeAllCallback, AfterAllCallback {
|
||||||
|
|
||||||
@ -17,6 +18,10 @@ public class RiakContainerExtension implements BeforeAllCallback, AfterAllCallba
|
|||||||
riak = new GenericContainer("basho/riak-kv")
|
riak = new GenericContainer("basho/riak-kv")
|
||||||
.withExposedPorts(8098, 8087)
|
.withExposedPorts(8098, 8087)
|
||||||
.withPrivilegedMode(true)
|
.withPrivilegedMode(true)
|
||||||
|
.withNetworkAliases("riak-kv-" + UUID.randomUUID())
|
||||||
|
.withEnv("CLUSTER_NAME", "riakts")
|
||||||
|
.withEnv("WAIT_FOR_ERLANG", "1000")
|
||||||
|
.withLabel("com.basho.riak.cluster.name", "riakts")
|
||||||
.waitingFor(new WaitAllStrategy()
|
.waitingFor(new WaitAllStrategy()
|
||||||
.withStartupTimeout(Duration.ofMinutes(2)));
|
.withStartupTimeout(Duration.ofMinutes(2)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user