-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update SignalR Redis tests to use internal Docker Hub mirror #62936
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,8 @@ public class Docker | |||||||
| { | ||||||||
| private static readonly string _exeSuffix = OperatingSystem.IsWindows() ? ".exe" : string.Empty; | ||||||||
|
|
||||||||
| private static readonly string _dockerContainerName = "redisTestContainer"; | ||||||||
| private static readonly string _redisImageName = "dotnetdhmirror-f8bzbjakh8cga6ab.azurecr.io/library/redis:7.4"; | ||||||||
| private static readonly string _dockerContainerName = "redisTestContainer74"; | ||||||||
|
||||||||
| private static readonly string _dockerContainerName = "redisTestContainer74"; | |
| private static readonly string _redisVersion = _redisImageName.Split(':')[1]; // Extract version from image name | |
| private static readonly string _dockerContainerName = $"redisTestContainer{_redisVersion.Replace('.', '_')}"; // Replace '.' with '_' for valid container name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is worth the complexity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded Azure Container Registry URL makes the code less maintainable. Consider extracting this to a configuration value or environment variable to allow easier updates when the registry URL changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this, this is a good suggestion though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also extract the ACR host URL into a separate property