We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Additional context
Doing this would make it much easier to deploy with something like Kubernetes.
The text was updated successfully, but these errors were encountered:
#908 adds Minio to the compose stack, plus some wrapper functions for accessing the bucket.
Two buckets have been added by default:
To use S3:
from app.config import settings from app.s3 import add_file_to_bucket, add_obj_to_bucket, get_file_from_bucket, get_obj_from_bucket # Available buckets basemap_bucket = settings.S3_BUCKET_NAME_BASEMAPS overlay_bucket = settings.S3_BUCKET_NAME_OVERLAYS # Upload from filesystem add_file_to_bucket(bucket_name, file_path, s3_path) # Upload from python obj (BytesIO) add_obj_to_bucket(bucket_name, file_obj, s3_path) # Download to file get_file_from_bucket(bucket_name, s3_path, file_path) # Download to python obj (returns BytesIO object) variable = get_obj_from_bucket(bucket_name, s3_path)
I will test this further and refactor a bit so we use the S3 buckets to store files. @nrjadkry going forward we should:
We can discuss this on our next FMTM call 😄
Sorry, something went wrong.
spwoodcock
No branches or pull requests
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Additional context
Doing this would make it much easier to deploy with something like Kubernetes.
The text was updated successfully, but these errors were encountered: