Skip to content

Commit

Permalink
Update docker .NET framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Apr 24, 2023
1 parent 99ed6e0 commit ce46988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions setup/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

main:
container_name: nexus-main
image: mcr.microsoft.com/dotnet/sdk:6.0
image: mcr.microsoft.com/dotnet/sdk:7.0
volumes:
- /var/lib/nexus/docker/nexus-main/.ssh:/root/.ssh
entrypoint: bash -c "cd; curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/setup-main.sh'; source 'setup-main.sh'"
Expand All @@ -20,7 +20,7 @@ services:

satellite-nexus:
container_name: nexus-dotnet
image: mcr.microsoft.com/dotnet/sdk:6.0
image: mcr.microsoft.com/dotnet/sdk:7.0
volumes:
- /var/lib/nexus/docker/nexus-dotnet/.ssh:/root/.ssh
entrypoint: bash -c "satellite_id=dotnet;cd; curl -s -O 'https://raw.githubusercontent.com/malstroem-labs/nexus-sources-remote/master/setup/docker/setup-satellite.sh'; source 'setup-satellite.sh'"
Expand Down
6 changes: 3 additions & 3 deletions tests/Nexus.Sources.Remote.Tests/SetupDockerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public async Task CanReadFullDay(string satelliteId, string command)
await dataSource.SetContextAsync(context, NullLogger.Instance, CancellationToken.None);

var catalog = await dataSource.GetCatalogAsync("/A/B/C", CancellationToken.None);
var resource = catalog.Resources!.First();
var representation = resource.Representations!.First();
var resource = catalog.Resources![0];
var representation = resource.Representations![0];

var catalogItem = new CatalogItem(
catalog with { Resources = default! },
Expand Down Expand Up @@ -67,7 +67,7 @@ Task<ReadOnlyMemory<double>> ReadData(string resourcePath, DateTime begin, DateT
Assert.True(expectedStatus.SequenceEqual(status.ToArray()));
}

private DataSourceContext CreateContext(string satelliteId, string command)
private static DataSourceContext CreateContext(string satelliteId, string command)
{
return new DataSourceContext(
ResourceLocator: new Uri("https://example.com"),
Expand Down

0 comments on commit ce46988

Please sign in to comment.