From 140fd94b361786e777ae87a8a9643b954ed68e00 Mon Sep 17 00:00:00 2001 From: "Junho, Kim" Date: Sun, 7 Feb 2021 00:52:02 +0900 Subject: [PATCH] Change docker command (#3608) Closes #3571 This also includes changing default tag version (to v19.2.11) Co-authored-by: Junho, Kim Co-authored-by: Sergei Egorov --- .../org/testcontainers/containers/CockroachContainer.java | 4 ++-- .../test/java/org/testcontainers/CockroachDBTestImages.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cockroachdb/src/main/java/org/testcontainers/containers/CockroachContainer.java b/modules/cockroachdb/src/main/java/org/testcontainers/containers/CockroachContainer.java index 2a7990413e4..333a6ca0158 100644 --- a/modules/cockroachdb/src/main/java/org/testcontainers/containers/CockroachContainer.java +++ b/modules/cockroachdb/src/main/java/org/testcontainers/containers/CockroachContainer.java @@ -8,7 +8,7 @@ public class CockroachContainer extends JdbcDatabaseContainer { private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("cockroachdb/cockroach"); - private static final String DEFAULT_TAG = "v19.1.1"; + private static final String DEFAULT_TAG = "v19.2.11"; public static final String NAME = "cockroach"; @@ -53,7 +53,7 @@ public CockroachContainer(final DockerImageName dockerImageName) { .forStatusCode(200) .withStartupTimeout(Duration.ofMinutes(1)) ); - withCommand("start --insecure"); + withCommand("start-single-node --insecure"); } @Override diff --git a/modules/cockroachdb/src/test/java/org/testcontainers/CockroachDBTestImages.java b/modules/cockroachdb/src/test/java/org/testcontainers/CockroachDBTestImages.java index a309f84e098..ac02b2f5d81 100644 --- a/modules/cockroachdb/src/test/java/org/testcontainers/CockroachDBTestImages.java +++ b/modules/cockroachdb/src/test/java/org/testcontainers/CockroachDBTestImages.java @@ -3,5 +3,5 @@ import org.testcontainers.utility.DockerImageName; public interface CockroachDBTestImages { - DockerImageName COCKROACHDB_IMAGE = DockerImageName.parse("cockroachdb/cockroach:v19.1.1"); + DockerImageName COCKROACHDB_IMAGE = DockerImageName.parse("cockroachdb/cockroach:v19.2.11"); }