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

feat: Add TC host strategy #885

Merged
merged 8 commits into from
May 12, 2023

Conversation

HofmeisterAn
Copy link
Collaborator

What does this PR do?

Adds a new strategy for auto-discovering container runtimes.

Why is it important?

?

Related issues

-

@HofmeisterAn HofmeisterAn added the enhancement New feature or request label May 9, 2023
@netlify
Copy link

netlify bot commented May 9, 2023

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit bc404e5
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/645e132ec905920008c85712
😎 Deploy Preview https://deploy-preview-885--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@HofmeisterAn HofmeisterAn force-pushed the feature/add-testcontainers-host-strategy branch from 06efa6b to 551ef20 Compare May 9, 2023 08:42
/// <inheritdoc />
public string GetDockerHostOverride()
{
return _customConfiguration.GetDockerHostOverride();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see _customConfiguration implements PropertiesFileConfiguration, does this also take into account environment variable configurations?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it does not. It purely relies on the properties file. I asked myself the same question, if it should. Until now, TC for .NET use either of both ways to configure TC.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the question @cristianrgreco.

We effectively want TestcontainersHostConfiguration to only be configured through the testcontainers.host property in the property file, right? And this implementation follows this and hence is correct I assume.

kiview
kiview previously approved these changes May 9, 2023
Copy link
Member

@kiview kiview left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed internally, but added here for transparency:

Since this is effectively the integration with Testcontainer Cloud, it's clearer if we rename the strategy accordingly.

/// <inheritdoc />
public string GetDockerHostOverride()
{
return _customConfiguration.GetDockerHostOverride();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the question @cristianrgreco.

We effectively want TestcontainersHostConfiguration to only be configured through the testcontainers.host property in the property file, right? And this implementation follows this and hence is correct I assume.

@HofmeisterAn HofmeisterAn marked this pull request as ready for review May 12, 2023 10:25
@HofmeisterAn HofmeisterAn merged commit c25b017 into develop May 12, 2023
13 checks passed
@HofmeisterAn HofmeisterAn deleted the feature/add-testcontainers-host-strategy branch May 12, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants