【发布时间】:2020-09-24 12:21:31
【问题描述】:
有没有办法从 test-containers lib 的 GenericContainer 对象中传递此命令中的这些标志?
docker container run \
--publish 9092:9082 \
--detach \
--name h2 \
nemerosa/h2
@ClassRule
public static GenericContainer h2db =
new GenericContainer("nemerosa/h2")
.withStartupTimeout(Duration.ofSeconds(Constants.TIMEOUT_DURATION));
【问题讨论】:
标签: java spring-boot spring-boot-test testcontainers