Tapico / tapico-turborepo-remote-cache

A server for TurboRepo Remote Cache to store cache artefacts in Google Cloud Storage or Amazon S3
MIT License
131 stars 10 forks source link

Possibility to store on Azure Blob Storage #23

Open shubhamdeodia opened 2 years ago

shubhamdeodia commented 2 years ago

For one of the project I am working at my company, I need a remote cache server for Azure Blob Storage, I can provisioned blob storage to test the changes.

From the conversation here https://github.com/vercel/turborepo/discussions/381#discussioncomment-1849991, I believe we can make it work for Azure.

Any pointers on how can I get started with it ?

weyert commented 2 years ago

Hey @shubhamdeodia My apologies for late response to your ticket. The solution uses a library called stow (github.com/graymeta/stow) which already has support for Azure. I would think it might a few small changes to make it work.

The main step is to ensure you could pass the credentials for Azure Blob Storage and enhance this if-statement to coverage support for azure, see: https://github.com/Tapico/tapico-turborepo-remote-cache/blob/main/main.go#L113

Do you know if Azure has a emulator for Azure Blob Storage?

Feel free to reach out to me on Discord (I am on the Vercel/Turborepo and pnpm groups)