MinIO GCS Gateway allows to access Google Cloud Storage (GCS) with AWS S3-compatible APIs.
MinIO Gateway is Deprecated
Create Service Account
Navigate to the
Select a project or create a new project. Note the project ID.
Select the Create credentials drop-down on the Credentials page, and click Service account key.
Select New service account from the Service account drop-down.
Populate the Service account name and Service account ID.
Click the drop-down under Grant this service account access to the project, the Role and choose Storage > Storage Admin(Full control of GCS resources).
Click on the service account and select Add Key > Create New Key key
Download the JSON file and rename it as credentials.json
The service account is granted admin access to all GC storage objects. Please refer to Google Cloud and Minio documentation to limit access.
Deploy Minio Gateway
Grab the following Dockerfile and place it in the same directory as created earlier credentials.json
gcloud run deploy minio \
--image gcr.io/<project>/minio \
--platform managed \
--allow-unauthenticated \
--port 9000
## Example output:
# Service [minio0demo] revision [minio2-00001-fab] has been deployed and is serving 100 percent of traffic.
# Service URL: https://minio-dwpifb4gla-uc.a.run.app
Upon successful deployment, note the Service URL of the deployed service. You'd be able to open browsers and access Minio dashboard with the credentials you've set in Dockerfile earlier.
Create a New Bucket
Run the next command to create a new bucket (<bucket_name>) and set policy using mc - minio client Docker image
docker run -it minio/mc \
mc config host add gcs <minio_service_url> <minio_access_key> <minio_secret_key> && \
mc mb gcs/<bucket_name> && \
mc policy set download gcs/<bucket_name>
## Example output:
# Bucket created successfully `gcs/sorry-cypress-demo`.
# Access permission for `gcs/sorry-cypress-demo` is set to `download`
🎉 You have setup Minio Gateway that sorry-cypress can use to store the recordings of your runs.
Continue the setup steps for deploying sorry-cypress