public class Container extends Object
| Modifier and Type | Method and Description |
|---|---|
static Container |
createLocalstackContainer(String externalHostName) |
String |
executeCommand(List<String> command)
Run a command on the container via docker exec
|
int |
getExternalPortFor(int internalPort)
Given an internal port, retrieve the publicly addressable port that maps to it
|
void |
stop()
Stop the container
|
void |
waitForAllPorts(String ip) |
void |
waitForLogToken(Pattern pattern)
Poll the docker logs until a specific token appears, then return.
|
public static Container createLocalstackContainer(String externalHostName)
public int getExternalPortFor(int internalPort)
public void waitForAllPorts(String ip)
public void waitForLogToken(Pattern pattern)
public void stop()
Copyright © 2017. All rights reserved.