public DockerDatabaseManager(ITestOutputHelper output, string databaseName, int tcpPort = 5432)
     : base(output, databaseName)
 {
     _tcpPort           = tcpPort;
     _postgresContainer = new DockerContainer(
         DockerImage,
         DockerTag,
         HealthCheck,
         ports: tcpPort)
     {
         ContainerName = ContainerName,
         //   Env = new[] { @"PGOPTIONS=-N 1024" }
     };
 }
Ejemplo n.º 2
0
            public DockerSqlServerDatabase(string databaseName)
            {
                _databaseName = databaseName;
                _password     = "******";

                _sqlServerContainer = new DockerContainer(
                    Image,
                    Tag,
                    HealthCheck,
                    Port)
                {
                    ContainerName = "sql-stream-store-tests-mssql",
                    Env           = new[] { "ACCEPT_EULA=Y", $"SA_PASSWORD={_password}" }
                };
            }
 public DockerDatabaseManager(ITestOutputHelper testOutputHelper, string databaseName, int tcpPort = 5432)
     : base(testOutputHelper, databaseName)
 {
     _tcpPort           = tcpPort;
     _postgresContainer = new DockerContainer(
         DockerImage,
         DockerTag,
         HealthCheck,
         new Dictionary <int, int>
     {
         [tcpPort] = tcpPort
     })
     {
         ContainerName = ContainerName,
         Env           = new[] { @"MAX_CONNECTIONS=500" }
     };
 }
Ejemplo n.º 4
0
            public DockerSqlServerDatabase(string databaseName)
            {
                _databaseName = databaseName;

                var ports = new Dictionary <int, int>
                {
                    { 1433, Port }
                };

                _sqlServerContainer = new DockerContainer(
                    Image,
                    Tag,
                    HealthCheck,
                    ports)
                {
                    ContainerName = "sql-stream-store-tests-mssql",
                    Env           = new[] { "ACCEPT_EULA=Y", $"SA_PASSWORD={Password}" }
                };
            }