public class ContainerDslRule extends Object implements org.junit.rules.TestRule
| Constructor and Description |
|---|
ContainerDslRule(org.jboss.shrinkwrap.api.Archive<?> buildDirectory,
String imageId) |
ContainerDslRule(File directory,
String imageId) |
ContainerDslRule(String image) |
ContainerDslRule(String image,
String id) |
public ContainerDslRule(org.jboss.shrinkwrap.api.Archive<?> buildDirectory,
String imageId)
public ContainerDslRule(String image)
public ContainerDslRule withExposedPorts(Integer... ports)
public ContainerDslRule withExposedPorts(String... ports)
public ContainerDslRule withPortBinding(Integer... ports)
public ContainerDslRule withPortBinding(String... ports)
public ContainerDslRule withEnvironment(String key, Object value, Object... keyValues)
public ContainerDslRule withCommand(String command)
public ContainerDslRule withCommand(String... command)
public ContainerDslRule withVolume(String hostPath, String containerPath)
public ContainerDslRule withVolume(String hostPath, String containerPath, BindMode bindMode)
public ContainerDslRule withNetworkMode(String networkMode)
public ContainerDslRule withNetworkMode(NetworkDslRule networkMode)
public ContainerDslRule withNetworks(String... networks)
public ContainerDslRule withPriviledgedMode(boolean mode)
public ContainerDslRule withLink(String link)
public ContainerDslRule withLink(String service, String alias)
public ContainerDslRule withAwaitStrategy(Await awaitStrategy)
public String getIpAddress()
public int getBindPort(int exposedPort)
public String getLog()
public CubeOutput exec(String... commands)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleCopyright © 2018 JBoss by Red Hat. All rights reserved.