In this example there exists:
- A
docker-compose.ymlfile capable of instantiating and running a Minio container. - A configuration yaml file
bucket_storage.ymlwhich contains information tiled needs to authenticate with the bucket storage system and write / read Binary Large Objects (BLOBS) through the Zaar adapter.
- In one terminal window, navigate to the directory where the
docker-compose.ymlandbucket_storage.ymlare. - Run
docker compose upwith adequate permissions. - Open another terminal window in the same location and run
tiled serve config bucket_storage.yml --api-key secret - You will need to create a
storagedirectory in/example_configs/bucket_storagefor the sqlite database. - Create an
ipythonsession and run the following commands to write array data as a BLOB in a bucket:
from tiled.client import from_uri
c = from_uri('http://localhost:8000', api_key='secret')
c.write_array([1,2,3])- You will be able to see the written data in the bucket if you log in to the minio container, exposed on your machine at
http://localhost:9001/login.
Use testing credentialsminioadminfor both fields.