Home
Using Jib
登录后可跨设备保存划线和私人笔记登录
Using Jib
Jib is a library for building Docker images. You can use it as an alternative to Testcontainers default DockerfileBuilder.
GenericContainer with JibImage
GenericContainer<?> busybox = new GenericContainer<>(
new JibImage(
"busybox:1.35",
jibContainerBuilder -> {
return jibContainerBuilder.setEntrypoint("echo", "Hello World");
}
)
)
.withStartupCheckStrategy(new OneShotStartupCheckStrategy().withTimeout(Duration.ofSeconds(3)))Hint
The Testcontainers library JAR will not automatically add a jib-core JAR to your project. Minimum version required is com.google.cloud.tools:jib-core:0.22.0.
评论
登录后参与评论
正在加载评论…
KnowForge