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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for Azure Blob Storage file storage backend #7092

Open
1 task done
tylerwinn opened this issue Apr 19, 2024 · 4 comments
Open
1 task done

Allow for Azure Blob Storage file storage backend #7092

tylerwinn opened this issue Apr 19, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@tylerwinn
Copy link

Duplicates

  • I have searched the existing issues

Summary 馃挕

In the .env file you will be able to set

FILE_STORAGE_BACKEND=azure
STORAGE_BUCKET=your_blob_container_name

and a new field will need to be created for the account name, and access key.
AZURE_STORAGE_ACCOUNT=storage_account_name.blob.core.windows.net
AZURE_STORAGE_ACCESS_KEY=your_access_key_here

Examples 馃寛

It would work just the same as S3 or GCS, except be based on Azure Blob storage.

Motivation 馃敠

I work at a software company that wants to start using AutoGPT. I believe I can add this functionality to the project for our use and the open source community.

@ntindle
Copy link
Member

ntindle commented Apr 20, 2024

Go for it! Let us know in the discord if you have trouble

Copy link
Contributor

github-actions bot commented Jun 9, 2024

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jun 9, 2024
@ntindle ntindle added good first issue Good for newcomers and removed Stale labels Jun 9, 2024
@ntindle
Copy link
Member

ntindle commented Jun 9, 2024

/boosterbot

Copy link

boosterbot-ai bot commented Jun 9, 2024

To implement Azure Blob Storage as a file storage backend, we will update the .env file with new environment variables, modify the configuration management code to read these variables, create or extend a class to handle Azure Blob Storage operations, integrate this class into the existing file storage system, and update the documentation with the new configuration instructions.

  • autogpt/autogpt/app/__init__.py - This file is responsible for setting up the application environment by loading configuration variables from a .env file. Consider updating the load_dotenv function call to include the new environment variables for Azure Blob Storage, ensuring they are loaded into the application's environment.
  • forge/forge/config/config.py - This file serves as a configuration class that stores various settings and configurations for the Auto-GPT application. Consider adding new attributes to the Config class for the Azure Blob Storage environment variables and updating the build_config_from_env method to read these variables from the environment.
  • forge/forge/file_storage/base.py - This file defines the FileStorage class, which serves as an interface for managing files, directories, and related operations. Consider creating a new class that extends the FileStorage class to handle Azure Blob Storage operations, implementing methods for uploading, downloading, and deleting files.
  • forge/forge/file_storage/__init__.py - This file provides a way to retrieve different types of file storage backends based on a specified backend type. Consider adding a new case for 'azure' in the get_storage function to initialize and return an instance of the Azure Blob Storage class.
  • docs/netlify.toml - This file is used to configure settings for deploying the AutoGPT documentation website on Netlify. Consider updating the documentation build process to include new instructions for configuring and using Azure Blob Storage, ensuring users have clear guidance on setting up this new backend.

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

No branches or pull requests

2 participants