Skip to content

Instantly share code, notes, and snippets.

@vgallet
Created December 29, 2018 18:27
Show Gist options
  • Save vgallet/92920475f67df47b4d6aad9bb870318c to your computer and use it in GitHub Desktop.
Save vgallet/92920475f67df47b4d6aad9bb870318c to your computer and use it in GitHub Desktop.
GenericContainer container = new GenericContainer("docker.elastic.co/elasticsearch/elasticsearch:6.1.1")
.withEnv("discovery.type", "single-node")
.withExposedPorts(9200)
.waitingFor(
Wait
.forHttp("/_cat/health?v&pretty")
.forStatusCode(200)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment