Esempio n. 1
0
        public bool Start(bool fromScratch = false)
        {
            _container = new DockerContainerBuilder(new DockerContainerBuilderOptions
            {
                FromImage               = "mcr.microsoft.com/mssql/server",
                Tag                     = "latest",
                Name                    = "mssql-evolve",
                Env                     = new[] { $"ACCEPT_EULA=Y", $"SA_PASSWORD={DbPwd}" },
                ExposedPort             = $"{ExposedPort}/tcp",
                HostPort                = HostPort,
                RemovePreviousContainer = fromScratch
            }).Build();

            return(_container.Start());
        }
Esempio n. 2
0
        public bool Start(bool fromScratch = false)
        {
            _container = new DockerContainerBuilder(new DockerContainerBuilderOptions
            {
                FromImage               = "postgres",
                Tag                     = "alpine",
                Name                    = "postgres-evolve",
                Env                     = new[] { $"POSTGRES_PASSWORD={DbPwd}", $"POSTGRES_DB={DbName}" },
                ExposedPort             = $"{ExposedPort}/tcp",
                HostPort                = HostPort,
                RemovePreviousContainer = fromScratch
            }).Build();

            return(_container.Start());
        }
Esempio n. 3
0
        public bool Start(bool fromScratch = false)
        {
            _container = new DockerContainerBuilder(new DockerContainerBuilderOptions
            {
                FromImage               = "mariadb",
                Tag                     = "latest",
                Name                    = "mariadb-evolve",
                Env                     = new[] { $"MYSQL_ROOT_PASSWORD={DbPwd}", $"MYSQL_DATABASE={DbName}" },
                ExposedPort             = $"{ExposedPort}/tcp",
                HostPort                = HostPort,
                RemovePreviousContainer = fromScratch
            }).Build();

            return(_container.Start());
        }
Esempio n. 4
0
        public bool Start(bool fromScratch = false)
        {
            _container = new DockerContainerBuilder(new DockerContainerBuilderOptions
            {
                FromImage               = "cassandra",
                Tag                     = "latest",
                Name                    = "cassandra-evolve",
                Env                     = new[] { $"CASSANDRA_CLUSTER_NAME={ClusterName}", $"CASSANDRA_DC={DataCenter}", "CASSANDRA_RACK=rack1" },
                ExposedPort             = $"{ExposedPort}/tcp",
                HostPort                = HostPort,
                RemovePreviousContainer = fromScratch
            }).Build();

            return(_container.Start());
        }
Esempio n. 5
0
        public bool Start(bool fromScratch = false)
        {
            _container = new DockerContainerBuilder(new DockerContainerBuilderOptions
            {
                FromImage               = "cockroachdb/cockroach",
                Tag                     = "latest",
                Name                    = "cockroachdb-evolve",
                ExposedPort             = $"{ExposedPort}/tcp",
                HostPort                = HostPort,
                RemovePreviousContainer = fromScratch,
                Cmd                     = new[] { "start-single-node", "--insecure" }
            }).Build();

            return(_container.Start());
        }