|
|
|
@ -48,7 +48,7 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running cassandra
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName cassandra() {
|
|
|
|
|
return new DockerImageName("cassandra", CASSANDRA_VERSION);
|
|
|
|
|
return DockerImageName.parse("cassandra").withTag(CASSANDRA_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -56,7 +56,7 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running cassandra
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName couchbase() {
|
|
|
|
|
return new DockerImageName("couchbase/server", COUCHBASE_VERSION);
|
|
|
|
|
return DockerImageName.parse("couchbase/server").withTag(COUCHBASE_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -66,7 +66,7 @@ public final class DockerImageNames {
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName elasticsearch() {
|
|
|
|
|
String version = org.elasticsearch.Version.CURRENT.toString();
|
|
|
|
|
return new DockerImageName("docker.elastic.co/elasticsearch/elasticsearch", version);
|
|
|
|
|
return DockerImageName.parse("docker.elastic.co/elasticsearch/elasticsearch").withTag(version);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -74,7 +74,7 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running mongo
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName mongo() {
|
|
|
|
|
return new DockerImageName("mongo", MONGO_VERSION);
|
|
|
|
|
return DockerImageName.parse("mongo").withTag(MONGO_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -82,7 +82,7 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running neo4j
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName neo4j() {
|
|
|
|
|
return new DockerImageName("neo4j", NEO4J_VERSION);
|
|
|
|
|
return DockerImageName.parse("neo4j").withTag(NEO4J_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -90,7 +90,7 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running postgresql
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName postgresql() {
|
|
|
|
|
return new DockerImageName("postgres", POSTGRESQL_VERSION);
|
|
|
|
|
return DockerImageName.parse("postgres").withTag(POSTGRESQL_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -98,15 +98,16 @@ public final class DockerImageNames {
|
|
|
|
|
* @return a docker image name for running redis
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName redis() {
|
|
|
|
|
return new DockerImageName("redis", REDIS_VERSION);
|
|
|
|
|
return DockerImageName.parse("redis").withTag(REDIS_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return a {@link DockerImageName} suitable for running a Docker registry.
|
|
|
|
|
* @return a docker image name for running a registry
|
|
|
|
|
* @since 2.4.0
|
|
|
|
|
*/
|
|
|
|
|
public static DockerImageName registry() {
|
|
|
|
|
return new DockerImageName("registry", REGISTRY_VERSION);
|
|
|
|
|
return DockerImageName.parse("registry").withTag(REGISTRY_VERSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|