Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| dev-tools:s3_object_storage [2025/09/25 19:27] – [Example Using mlflow] fabricio | dev-tools:s3_object_storage [2025/10/15 16:37] (current) – [RKNS (Zarr V2) from Minio ZIP] fabricio | ||
|---|---|---|---|
| Line 243: | Line 243: | ||
| zarr.create_array(store=store, | zarr.create_array(store=store, | ||
| + | </ | ||
| + | |||
| + | ===== Example Using mlflow ===== | ||
| + | This assumes that you have already set up a MLFLow server with a Minio artifact store. | ||
| + | In addition, the client has to also provide the credentials to the Minio store, as it directly sends it to s3, not via the mlflow. | ||
| + | You can do so by setting a few environment variables. | ||
| + | Note that the code below assumes you have a local file called ' | ||
| + | |||
| + | <code python> | ||
| + | |||
| + | print(" | ||
| + | load_dotenv() | ||
| + | |||
| + | # --- Configuration: | ||
| + | os.environ[" | ||
| + | os.environ[" | ||
| + | os.environ[" | ||
| + | os.environ[" | ||
| + | |||
| + | ca_cert_path = " | ||
| + | if not os.path.exists(ca_cert_path): | ||
| + | raise FileNotFoundError(f" | ||
| + | os.environ[" | ||
| + | # uncomment this if you want to ignore an insecure TLS/ | ||
| + | # | ||
| + | os.environ[" | ||
| </ | </ | ||
| Line 287: | Line 313: | ||
| </ | </ | ||
| + | |||
| + | |||