func NewMinio(env e2e.Environment, name, bktName string) *e2e.InstrumentedRunnable {
	image := "minio/minio:RELEASE.2019-12-30T05-45-39Z"
	minioKESGithubContent := "https://raw.githubusercontent.com/minio/kes/master"
	commands := []string{
		"curl -sSL --tlsv1.2 -O '%s/root.key'	-O '%s/root.cert'",
		"mkdir -p /data/%s && minio server --address :%v --quiet /data",
	}

	return e2e.NewInstrumentedRunnable(
		env,
		name,
		map[string]int{"http": 8090},
		"http").Init(
		e2e.StartOptions{
			Image: image,
			// Create the required bucket before starting minio.
			Command:   e2e.NewCommandWithoutEntrypoint("sh", "-c", fmt.Sprintf(strings.Join(commands, " && "), minioKESGithubContent, minioKESGithubContent, bktName, 8090)),
			Readiness: e2e.NewHTTPReadinessProbe("http", "/minio/health/ready", 200, 200),
			EnvVars: map[string]string{
				"MINIO_ACCESS_KEY": e2edb.MinioAccessKey,
				"MINIO_SECRET_KEY": e2edb.MinioSecretKey,
				"MINIO_BROWSER":    "off",
				"ENABLE_HTTPS":     "0",
				// https://docs.min.io/docs/minio-kms-quickstart-guide.html
				"MINIO_KMS_KES_ENDPOINT":  "https://play.min.io:7373",
				"MINIO_KMS_KES_KEY_FILE":  "root.key",
				"MINIO_KMS_KES_CERT_FILE": "root.cert",
				"MINIO_KMS_KES_KEY_NAME":  "my-minio-key",
			},
		},
	)
}
// NewMinio returns minio server, used as a local replacement for S3.
// TODO(@matej-g): This is a temporary workaround for https://github.com/efficientgo/e2e/issues/11;
// after this is addresses fixed all calls should be replaced with e2edb.NewMinio.
NewMinio returns minio server, used as a local replacement for S3.
// NewMinio returns minio server used as a local replacement for S3 . // TODO ( @matej - g ) : This is a temporary workaround for https : // github . com / efficientgo / e2e / issues / 11 ; // after this is addresses fixed all calls should be replaced with e2edb . NewMinio .
func NewMinio(env e2e.Environment, name, bktName string) *e2e.InstrumentedRunnable {
	image := "minio/minio:RELEASE.2019-12-30T05-45-39Z"
	minioKESGithubContent := "https://raw.githubusercontent.com/minio/kes/master"
	commands := []string{
		"curl -sSL --tlsv1.2 -O '%s/root.key'	-O '%s/root.cert'",
		"mkdir -p /data/%s && minio server --address :%v --quiet /data",
	}
	return e2e.NewInstrumentedRunnable(
		env,
		name,
		map[string]int{"http": 8090},
		"http").Init(
		e2e.StartOptions{
			Image: image,
			Command:   e2e.NewCommandWithoutEntrypoint("sh", "-c", fmt.Sprintf(strings.Join(commands, " && "), minioKESGithubContent, minioKESGithubContent, bktName, 8090)),
			Readiness: e2e.NewHTTPReadinessProbe("http", "/minio/health/ready", 200, 200),
			EnvVars: map[string]string{
				"MINIO_ACCESS_KEY": e2edb.MinioAccessKey,
				"MINIO_SECRET_KEY": e2edb.MinioSecretKey,
				"MINIO_BROWSER":    "off",
				"ENABLE_HTTPS":     "0",
				"MINIO_KMS_KES_ENDPOINT":  "https://play.min.io:7373",
				"MINIO_KMS_KES_KEY_FILE":  "root.key",
				"MINIO_KMS_KES_CERT_FILE": "root.cert",
				"MINIO_KMS_KES_KEY_NAME":  "my-minio-key",
			},
		},
	)
}
func NewMinio ( env e2e . Environment , name , bktName string ) * e2e . InstrumentedRunnable { image := " " minioKESGithubContent := " " commands := [ ] string { " " , " " , } return e2e . NewInstrumentedRunnable ( env , name , map [ string ] int { " " : 8090 } , " " ) . Init ( e2e . StartOptions { Image : image , Command : e2e . NewCommandWithoutEntrypoint ( " " , " " , fmt . Sprintf ( strings . Join ( commands , " " ) , minioKESGithubContent , minioKESGithubContent , bktName , 8090 ) ) , Readiness : e2e . NewHTTPReadinessProbe ( " " , " " , 200 , 200 ) , EnvVars : map [ string ] string { " " : e2edb . MinioAccessKey , " " : e2edb . MinioSecretKey , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , " " : " " , } , } , ) }
NewMinio returns minio server, used as a local replacement for S3.
NewMinio returns minio server used as a local replacement for S3 .
// Create the required bucket before starting minio. // https://docs.min.io/docs/minio-kms-quickstart-guide.html