Skip to content

Commit 140fd94

Browse files
giger85Junho, Kimbsideup
authored
Change docker command (#3608)
Closes #3571 This also includes changing default tag version (to v19.2.11) Co-authored-by: Junho, Kim <giger85.juno@navercorp.com> Co-authored-by: Sergei Egorov <bsideup@gmail.com>
1 parent 625ddc3 commit 140fd94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/cockroachdb/src/main/java/org/testcontainers/containers/CockroachContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public class CockroachContainer extends JdbcDatabaseContainer<CockroachContainer> {
99

1010
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("cockroachdb/cockroach");
11-
private static final String DEFAULT_TAG = "v19.1.1";
11+
private static final String DEFAULT_TAG = "v19.2.11";
1212

1313
public static final String NAME = "cockroach";
1414

@@ -53,7 +53,7 @@ public CockroachContainer(final DockerImageName dockerImageName) {
5353
.forStatusCode(200)
5454
.withStartupTimeout(Duration.ofMinutes(1))
5555
);
56-
withCommand("start --insecure");
56+
withCommand("start-single-node --insecure");
5757
}
5858

5959
@Override

modules/cockroachdb/src/test/java/org/testcontainers/CockroachDBTestImages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
import org.testcontainers.utility.DockerImageName;
44

55
public interface CockroachDBTestImages {
6-
DockerImageName COCKROACHDB_IMAGE = DockerImageName.parse("cockroachdb/cockroach:v19.1.1");
6+
DockerImageName COCKROACHDB_IMAGE = DockerImageName.parse("cockroachdb/cockroach:v19.2.11");
77
}

0 commit comments

Comments
 (0)