Skip to content
New issue

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

upload/download to/from Azure Blob Storage via dockerized flask app directly #2

Open
H-Bey opened this issue Apr 18, 2023 · 0 comments

Comments

@H-Bey
Copy link

H-Bey commented Apr 18, 2023

Having a Flask app that uploads folders from local device to Azure Blob Storage (ABS) and downloads folders from ABS to local device, while the app is dockerized, I’d like to download folders from ABS directly to the host device (not the docker image). Similarly, I’d like to upload folders available on the host device directly to the ABS.
Below is how currently the upload function I am using looklike:

# upload function
def post(self, local_folder_path):
	local_folder_path = local_folder_path["local_folder_path"]
	client = DirectoryClient(IMST_CREDENTIALS, IMST_CONTAINER_NAME)
	client.upload(local_folder_path, '')

Below is how currently the download function I am using looklike:

# download function
def post(self, folder_path_on_ABS):
	client = DirectoryClient(IMST_CREDENTIALS, IMST_CONTAINER_NAME)
	client.download("folder_path_on_ABS", 'downloads/')

Note that Dockerfiles and docker-compose are already developed.
Support would be highly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant