Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/Testcontainers/Clients/TestcontainersClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ private async Task<string> BuildAsync<TConfiguration>(IImageBuildOperations<TCon
/// necessarily match the platform of the image build. This does not apply to
/// an image build that targets multiple platforms, because the Docker daemon
/// pulls an image for a single platform only.
///
/// See <see cref="DockerfileArchive.GetBaseImages" /> for a base image that
/// declares a platform with a variable.
/// </remarks>
/// <param name="configuration">The Dockerfile configuration.</param>
/// <param name="buildParameters">The image build parameters.</param>
Expand Down Expand Up @@ -468,14 +471,15 @@ private async Task<DockerfileArchive> PrepareBuildAsync(IImageFromDockerfileConf
configuration.BuildArguments,
_logger);

var platform = buildParameters.Platform;
// The image build targets a single platform or a comma-separated
// list of platforms.
var platforms = buildParameters.Platform;

var baseImages = dockerfileArchive.GetBaseImages();
// The base images pull for the single platform the image build targets.
// A multi-platform build pulls them for the platform of the Docker host.
var targetPlatform = string.IsNullOrEmpty(platforms) || platforms.Contains(",") ? null : platforms;

if (!string.IsNullOrEmpty(platform) && !platform.Contains(","))
{
baseImages = baseImages.Select(image => string.IsNullOrEmpty(image.Platform) ? new DockerImage(image.Repository, image.Registry, image.Tag, image.Digest, platform) : image);
}
var baseImages = dockerfileArchive.GetBaseImages(targetPlatform);

await PullImagesAsync(baseImages, ct)
.ConfigureAwait(false);
Expand Down
46 changes: 42 additions & 4 deletions src/Testcontainers/Images/DockerfileArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,24 @@
/// This method reads the Dockerfile and collects a list of base images. It
/// excludes stages that do not correspond to base images. For example, it will not include
/// the second line from the following Dockerfile configuration:
///
/// <code>
/// FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
/// FROM build
/// </code>
///
/// A base image that does not declare a platform (<c>FROM --platform</c>)
/// resolves to the <paramref name="targetPlatform" />. A base image that
/// declares a platform with a variable that does not resolve, such as the
/// built-in build argument <c>$BUILDPLATFORM</c>, resolves to no platform,
/// which is the platform of the Docker host that runs the image build.
/// </remarks>
/// <param name="targetPlatform">The platform the image build targets, or <c>null</c> if it does not target a single platform.</param>
/// <returns>An <see cref="IEnumerable{T}" /> of <see cref="IImage" />.</returns>
public IEnumerable<IImage> GetBaseImages()
public IEnumerable<IImage> GetBaseImages([CanBeNull] string targetPlatform = null)
{
const string targetPlatformArg = "TARGETPLATFORM";

const string nameGroup = "name";

const string valueGroup = "value";
Expand All @@ -137,7 +147,10 @@
.Where(line => !line.StartsWith("#", StringComparison.Ordinal))
.ToArray();

// Only ARG instructions declared before the first FROM instruction are in
// scope for FROM instructions. Stage-local declarations are not.
var argMatches = lines
.TakeWhile(line => !FromLinePattern.IsMatch(line))
.Select(line => ArgLinePattern.Match(line))
.Where(match => match.Success)
.ToArray();
Expand All @@ -147,8 +160,17 @@
.Where(match => match.Success)
.ToArray();

var args = argMatches
.Select(match => new KeyValuePair<string, string>(match.Groups[nameGroup].Value, match.Groups[valueGroup].Value))
// The image builder sets the built-in build argument.
// The Dockerfile and the build arguments override it.
var builtInArgs = string.IsNullOrEmpty(targetPlatform)
? Array.Empty<KeyValuePair<string, string>>()
: new[] { new KeyValuePair<string, string>(targetPlatformArg, targetPlatform) };

var parsedArguments = argMatches
.Select(match => new KeyValuePair<string, string>(match.Groups[nameGroup].Value, match.Groups[valueGroup].Value));

var args = builtInArgs
.Concat(parsedArguments)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
.Concat(_buildArguments)
.GroupBy(kvp => kvp.Key)
.ToDictionary(group => group.Key, group => group.Last().Value);
Expand All @@ -168,8 +190,24 @@
.Where(item => !stages.Contains(item.Image))
.Select(item =>
{
string? platform;

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ActiveMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ActiveMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Bigtable, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Bigtable, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Azurite, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Azurite, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Azurite, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Azurite, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.BigQuery, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.BigQuery, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.AspireDashboard, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.AspireDashboard, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ActiveMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ActiveMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ArangoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ArangoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.AspireDashboard, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.AspireDashboard, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Bigtable, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Bigtable, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.BigQuery, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.BigQuery, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Cassandra, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Cassandra, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ArangoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ArangoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Cassandra, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Cassandra, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ClickHouse, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ClickHouse, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ClickHouse, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ClickHouse, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CockroachDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CockroachDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CosmosDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CosmosDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Consul, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Consul, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CockroachDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CockroachDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Consul, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Consul, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CouchDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CouchDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Couchbase, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Couchbase, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CosmosDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CosmosDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.DynamoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.DynamoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Databases, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Databases, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Couchbase, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Couchbase, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CouchDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.CouchDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.EventHubs, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.EventHubs, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Elasticsearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Elasticsearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Databases, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Databases, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FakeGcsServer, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FakeGcsServer, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Db2, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Db2, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.DynamoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.DynamoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FirebirdSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FirebirdSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Firestore, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Firestore, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.EventHubs, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.EventHubs, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Grafana, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Grafana, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Floci, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Floci, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.InfluxDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.InfluxDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.JanusGraph, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.JanusGraph, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FakeGcsServer, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FakeGcsServer, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Db2, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Db2, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Elasticsearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Elasticsearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FirebirdSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.FirebirdSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.K3s, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.K3s, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Firestore, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Firestore, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.KurrentDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.KurrentDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kafka, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kafka, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Floci, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Floci, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kusto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kusto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Grafana, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Grafana, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LowkeyVault, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LowkeyVault, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LocalStack, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LocalStack, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.InfluxDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.InfluxDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mailpit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mailpit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.JanusGraph, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.JanusGraph, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Keycloak, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Keycloak, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.K3s, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.K3s, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MariaDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MariaDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Milvus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Milvus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kafka, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kafka, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mosquitto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mosquitto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MongoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MongoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MsSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MsSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.KurrentDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.KurrentDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MySql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MySql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LocalStack, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LocalStack, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mailpit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mailpit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kusto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Kusto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Keycloak, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Keycloak, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Nats, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Nats, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LowkeyVault, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.LowkeyVault, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MariaDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MariaDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Neo4j, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Neo4j, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle11, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle11, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Milvus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Milvus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Ollama, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Ollama, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mosquitto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Mosquitto, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle18, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle18, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.OpenSearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.OpenSearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MongoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MongoDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MsSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MsSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle21, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle21, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MySql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.MySql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Nats, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Nats, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Papercut, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Papercut, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Neo4j, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Neo4j, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle23, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle23, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Linux, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Linux, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Playwright, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Playwright, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PostgreSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PostgreSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Ollama, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Ollama, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PubSub, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PubSub, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Qdrant, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Qdrant, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle11, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle11, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.OpenSearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.OpenSearch, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Pulsar, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Pulsar, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.QuestDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.QuestDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RabbitMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RabbitMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle18, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle18, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle21, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle21, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RavenDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RavenDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redis, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redis, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle23, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Oracle23, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Papercut, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Papercut, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Windows, windows-2025)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Windows, windows-2025)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PostgreSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PostgreSql, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Playwright, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Playwright, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Linux, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Linux, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PubSub, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.PubSub, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redpanda, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redpanda, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ResourceReaper, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ResourceReaper, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Seq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Seq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Sftp, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Sftp, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Pulsar, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Pulsar, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Temporal, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Temporal, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ServiceBus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ServiceBus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.QuestDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.QuestDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Qdrant, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Qdrant, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RabbitMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RabbitMq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RavenDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.RavenDb, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redpanda, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redpanda, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Toxiproxy, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Toxiproxy, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redis, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Redis, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Typesense, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Typesense, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Weaviate, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Weaviate, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Windows, windows-2025)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Platform.Windows, windows-2025)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Xunit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Xunit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.WebDriver, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.WebDriver, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ResourceReaper, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ResourceReaper, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Seq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Seq, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ServiceBus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.ServiceBus, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.XunitV3, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.XunitV3, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Sftp, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Sftp, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Temporal, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Temporal, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Toxiproxy, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Toxiproxy, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Typesense, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Typesense, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Weaviate, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Weaviate, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Xunit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.Xunit, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.WebDriver, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.WebDriver, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.XunitV3, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 193 in src/Testcontainers/Images/DockerfileArchive.cs

View workflow job for this annotation

GitHub Actions / ci (Testcontainers.XunitV3, ubuntu-24.04)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

var fromArgs = ParseFromArgs(item.FromArgs).ToDictionary(arg => arg.Name, arg => arg.Value);
_ = fromArgs.TryGetValue("platform", out var platform);

if (!fromArgs.TryGetValue("platform", out var fromPlatform))
{
platform = targetPlatform;
}
else if (fromPlatform != null && fromPlatform.Contains("$"))
{
// The Docker daemon rejects unresolved variables such as $BUILDPLATFORM.
platform = null;
}
else
{
platform = fromPlatform;
}

return new DockerImage(item.Image, new Platform(platform));
})
.ToArray();
Expand Down
2 changes: 1 addition & 1 deletion src/Testcontainers/Images/Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public readonly struct Platform
/// </summary>
/// <param name="value">The platform identifier.</param>
[PublicAPI]
public Platform(string value)
public Platform([CanBeNull] string value)
{
Value = value;
}
Expand Down
9 changes: 9 additions & 0 deletions tests/Testcontainers.Tests/Assets/pullBaseImages/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ ARG REPO=mcr.microsoft.com/dotnet/aspnet
ARG PLATFORM=linux/arm64

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build

# Stage-local build arguments are out of scope for FROM instructions.
ARG REPO=stage-local
ARG TARGETPLATFORM=linux/stage-local

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime
FROM build
FROM build AS publish
Expand All @@ -15,6 +20,10 @@ FROM --platform=$PLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0
FROM --platform="linux/arm/v6" mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0
FROM --platform='linux/arm/v7' mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0

# Built-in build arguments are not declared with ARG.
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build_platform
FROM --platform=${TARGETPLATFORM} mcr.microsoft.com/dotnet/runtime:8.0-alpine AS target_platform

# https://github.com/testcontainers/testcontainers-dotnet/issues/1030.
FROM mcr.microsoft.com/dotnet/sdk:$SDK_VERSION_8_0 AS build_sdk_8_0
FROM build_sdk_8_0 AS publish_sdk_8_0
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public void DockerfileArchiveGetBaseImages()
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm64")),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm/v6")),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm/v7")),
new DockerImage("mcr.microsoft.com/dotnet/sdk:8.0-alpine"),
new DockerImage("mcr.microsoft.com/dotnet/runtime:8.0-alpine"),
new DockerImage("mcr.microsoft.com/dotnet/sdk:8.0.414"),
};

Expand All @@ -50,6 +52,43 @@ public void DockerfileArchiveGetBaseImages()
Assert.Equivalent(expected, actual);
}

[Fact]
public void DockerfileArchiveGetBaseImagesForTargetPlatform()
{
// Given
var targetPlatform = new Platform("linux/s390x");

var expected = new[]
{
new DockerImage("mcr.microsoft.com/dotnet/sdk:8.0", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/runtime:8.0", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-jammy", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-noble", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-alpine", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/amd64")),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm64")),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm/v6")),
new DockerImage("mcr.microsoft.com/dotnet/aspnet:8.0-azurelinux3.0", new Platform("linux/arm/v7")),
new DockerImage("mcr.microsoft.com/dotnet/sdk:8.0-alpine"),
new DockerImage("mcr.microsoft.com/dotnet/runtime:8.0-alpine", targetPlatform),
new DockerImage("mcr.microsoft.com/dotnet/sdk:8.0.414", targetPlatform),
};

IImage image = new DockerImage("localhost/testcontainers", Guid.NewGuid().ToString("D"), string.Empty);

// The Dockerfile does not contain a default value.
var buildArguments = new Dictionary<string, string>();
buildArguments.Add("SDK_VERSION_8_0", "8.0.414");

var dockerfileArchive = new DockerfileArchive(null, "Assets/pullBaseImages/", "Dockerfile", image, buildArguments, NullLogger.Instance);

// When
var actual = dockerfileArchive.GetBaseImages(targetPlatform.Value);

// Then
Assert.Equivalent(expected, actual);
}

[Fact]
public async Task DockerfileArchiveTar()
{
Expand Down
Loading