Package io.trino.testing.containers
Class Minio
java.lang.Object
io.trino.testing.containers.BaseTestContainer
io.trino.testing.containers.Minio
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Minio.Builderbuilder()voidcopyResources(String resourcePath, String bucketName, String target) voidcreateBucket(String bucketName) com.google.common.net.HostAndPortcom.google.common.net.HostAndPortprotected voidvoidstart()voidMethods inherited from class io.trino.testing.containers.BaseTestContainer
close, copyResourceToContainer, executeInContainer, executeInContainerFailOnError, getMappedHostAndPortForExposedPort, isPresent, mountDirectory, stop, withCreateContainerModifier, withLogConsumer, withRunCommand
-
Field Details
-
DEFAULT_IMAGE
- See Also:
-
DEFAULT_HOST_NAME
- See Also:
-
MINIO_API_PORT
public static final int MINIO_API_PORT- See Also:
-
MINIO_CONSOLE_PORT
public static final int MINIO_CONSOLE_PORT- See Also:
-
MINIO_ACCESS_KEY
- See Also:
-
MINIO_SECRET_KEY
- See Also:
-
MINIO_REGION
- See Also:
-
-
Method Details
-
builder
-
setupContainer
protected void setupContainer()- Overrides:
setupContainerin classBaseTestContainer
-
start
public void start()- Overrides:
startin classBaseTestContainer
-
getMinioApiEndpoint
public com.google.common.net.HostAndPort getMinioApiEndpoint() -
getMinioAddress
-
getMinioConsoleEndpoint
public com.google.common.net.HostAndPort getMinioConsoleEndpoint() -
createBucket
-
copyResources
-
writeFile
-
createMinioClient
-