From 021ee997b6ba421a8bc60d740d72b471818ca594 Mon Sep 17 00:00:00 2001 From: Rob Hague <rob.hague00@gmail.com> Date: Wed, 18 Dec 2024 17:15:51 +0000 Subject: [PATCH] Pin Alpine Linux image to 3.20 (#1554) --- .../{Dockerfile.TestServer => Dockerfile} | 2 +- .../TestsFixtures/InfrastructureFixture.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename test/Renci.SshNet.IntegrationTests/{Dockerfile.TestServer => Dockerfile} (99%) diff --git a/test/Renci.SshNet.IntegrationTests/Dockerfile.TestServer b/test/Renci.SshNet.IntegrationTests/Dockerfile similarity index 99% rename from test/Renci.SshNet.IntegrationTests/Dockerfile.TestServer rename to test/Renci.SshNet.IntegrationTests/Dockerfile index 548f76dab..d2ef74223 100644 --- a/test/Renci.SshNet.IntegrationTests/Dockerfile.TestServer +++ b/test/Renci.SshNet.IntegrationTests/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest +FROM alpine:3.20 COPY --chown=root:root server/ssh /etc/ssh/ COPY --chown=root:root server/script /opt/sshnet diff --git a/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs b/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs index 7c095b867..93d44e015 100644 --- a/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs +++ b/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs @@ -43,7 +43,7 @@ public async Task InitializeAsync() _sshServerImage = new ImageFromDockerfileBuilder() .WithName("renci-ssh-tests-server-image") .WithDockerfileDirectory(CommonDirectoryPath.GetSolutionDirectory(), Path.Combine("test", "Renci.SshNet.IntegrationTests")) - .WithDockerfile("Dockerfile.TestServer") + .WithDockerfile("Dockerfile") .WithDeleteIfExists(true) .WithLogger(containerLogger) .Build();