Skip to content

Commit

Permalink
#1256 Added fsync=off option by default (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumukiller authored and rnorth committed Mar 17, 2019
1 parent 5a3c9f3 commit 604fd0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class PostgreSQLContainer<SELF extends PostgreSQLContainer<SELF>> extends
private String username = "test";
private String password = "test";

private static final String FSYNC_OFF_OPTION = "fsync=off";

public PostgreSQLContainer() {
this(IMAGE + ":" + DEFAULT_TAG);
}
Expand All @@ -47,7 +49,7 @@ protected void configure() {
addEnv("POSTGRES_DB", databaseName);
addEnv("POSTGRES_USER", username);
addEnv("POSTGRES_PASSWORD", password);
setCommand("postgres");
setCommand("postgres", "-c", FSYNC_OFF_OPTION);
}

@Override
Expand Down

0 comments on commit 604fd0e

Please sign in to comment.