Skip to content

Commit

Permalink
Fix tests using DSE container
Browse files Browse the repository at this point in the history
  • Loading branch information
maximevw committed Oct 6, 2024
1 parent 81dcfe4 commit c34cf88
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ abstract class UsingDseContainerTest {

protected static void initializeContainer() {
// For the official DataStax Enterprise server image, see here: https://hub.docker.com/r/datastax/dse-server/
final DockerImageName dseServerImage = DockerImageName.parse("datastax/dse-server:7.0.0-a")
final DockerImageName dseServerImage = DockerImageName.parse("datastax/dse-server:6.9.2")
.asCompatibleSubstituteFor("cassandra");
cassandraContainer = new CassandraContainer(dseServerImage)
.withEnv("DS_LICENSE", "accept")
.withEnv("CLUSTER_NAME", "embedded_test_cluster")
.withEnv("DC", "datacenter1")
.withInitScript("initEmbeddedDse.cql");
.withInitScript("initEmbeddedDse.cql")
// In DSE server container, the working directory is /opt/dse by default, but the init script is copied
// at the root of the container; so, we have to change the working directory in this case to avoid an error
// 'No such file or directory' when running the script.
.withWorkingDirectory("/");
cassandraContainer.start();
}

Expand Down

0 comments on commit c34cf88

Please sign in to comment.