Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to pre-built Cassandra Docker image #9076

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

rkargMsft
Copy link
Contributor

@rkargMsft rkargMsft commented Jul 22, 2024

Removed Cassandra.dockerfile and related custom image build code. Updated CassandraContainer.cs to use a pre-built Cassandra image from Docker Hub, specified by the CASSANDRAVERSION environment variable.

Using the base image without the prior config changes increases a local run of all the tests from 18 sec. to about 70 sec. Annoying, but not terrible.

We could look at replacing the config file with a transformed version but I don't know how stable that would be with future versions of Cassandra.

The test run on the build server should let us know if this is acceptable speed there.

Microsoft Reviewers: Open in CodeFlow

Removed `Cassandra.dockerfile` and related custom image build code.
Updated `CassandraContainer.cs` to use a pre-built Cassandra image
from Docker Hub, specified by the `CASSANDRAVERSION` environment
variable.
@rkargMsft
Copy link
Contributor Author

Adds about a minute to the test run on the build server, too.

@rkargMsft
Copy link
Contributor Author

Test failures appear to be in tests unrelated to the changes in this PR

@benjaminpetit benjaminpetit merged commit 0de83d2 into dotnet:main Jul 25, 2024
22 checks passed
@benjaminpetit
Copy link
Member

Thanks!

@rkargMsft rkargMsft deleted the cassandra_tests branch July 26, 2024 16:12
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants