Skip to content

Commit

Permalink
chore: Simplify shell script config
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Oct 18, 2023
1 parent b745326 commit 5bdc1d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Testcontainers.FakeGcsServer/FakeGcsServerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ protected override FakeGcsServerBuilder Init()
.WithImage(FakeGcsServerImage)
.WithPortBinding(FakeGcsServerPort, true)
.WithEntrypoint("/bin/sh", "-c")
.WithCommand("while [ ! -f " + StartupScriptFilePath + " ]; do sleep 0.1; done; /bin/sh " + StartupScriptFilePath)
.WithCommand("while [ ! -f " + StartupScriptFilePath + " ]; do sleep 0.1; done; " + StartupScriptFilePath)
.WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("server started"))
.WithStartupCallback((container, ct) =>
{
const char lf = '\n';
var startupScript = new StringBuilder();
startupScript.Append("#!/bin/bash");
startupScript.Append("#!/bin/sh");
startupScript.Append(lf);
startupScript.Append("fake-gcs-server ");
startupScript.Append("-backend memory ");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Testcontainers.FakeGcsServer;

public abstract class FakeGcsServerContainerTest : IAsyncLifetime
public sealed class FakeGcsServerContainerTest : IAsyncLifetime
{
private readonly FakeGcsServerContainer _fakeGcsServerContainer = new FakeGcsServerBuilder().Build();

Expand Down

0 comments on commit 5bdc1d7

Please sign in to comment.