Skip to content

Commit

Permalink
Changed docker image to postgres:alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
jgozner committed Oct 1, 2021
1 parent b41aec7 commit c709beb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Ductus.FluentDocker.XUnit/PostgresTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class PostgresTestBase : FluentDockerTestBase

protected string ConnectionString;

protected PostgresTestBase(string password = "mysecretpassword", string image = "kiasaki/alpine-postgres")
protected PostgresTestBase(string password = "mysecretpassword", string image = "postgres:alpine")
{
PostgresPassword = password;
DockerImage = image;
Expand All @@ -31,8 +31,10 @@ protected PostgresTestBase(string password = "mysecretpassword", string image =
protected override ContainerBuilder Build()
{
return new Builder().UseContainer()
.UseImage("kiasaki/alpine-postgres")
.WithEnvironment($"POSTGRES_PASSWORD={PostgresPassword}")
.UseImage("postgres:alpine")
.WithEnvironment(
$"POSTGRES_PASSWORD={PostgresPassword}",
"POSTGRES_HOST_AUTH_METHOD=trust")
.ExposePort(5432)
.WaitForPort("5432/tcp", 30000 /*30s*/);
}
Expand Down

0 comments on commit c709beb

Please sign in to comment.