theforeman / pulpcore-packaging

1 stars 23 forks source link

Add package for google-cloud-storage #1244

Closed dmaes closed 3 weeks ago

dmaes commented 1 month ago

We are running pulp on GCP, and would like to use Google Storage Buckets as storage backend. Would it be possible to package google-cloud-storage? It seems to be required by django-storages to be able to use Google Storage.

Thanks in advance.

ishan4421 commented 1 month ago

Hi @dmaes , You can surely do it. I used GCP for my NLP project but it wad not related to Django. I am attaching a chatgpt chat for it. I think it will work. I hope you have GCP json file. I hope this will work.

https://chatgpt.com/share/66e4859e-e25c-8006-818b-211c7af0fc8d

Odilhao commented 1 month ago

Hey @dmaes , looking at the required packages atm we only have requests packaged, we would need to package 5 new packages. I'll try to take a look next week, we can draft the PRs, do you know if that's the only requirement for pulp to work with GCP Buckets?

dmaes commented 1 month ago

Hi @ishan4421, thanks for the "how", but that was not necessarily what I was asking, I figured that out already. My question was if it would be possible to make and add a python-google-cloud-storage RPM for the google-cloud-storage python package, since that is currently not present in this repository, but is required to actually be able to use Google cloud storage.

dmaes commented 1 month ago

HI @Odilhao, missed your comment while writing mine. As far as I understand the Django storages docs and the dependencies for django-storages[google] correctly, google-cloud-storage, allong with it's dependencies, should be the only requirement. But I will double-check on monday, and test it out with a pulp venv/pip install.

dmaes commented 4 weeks ago

Just tested, and can confirm that google-cloud-storage, along with it's dependencies, is enough.

dmaes commented 3 weeks ago

@Odilhao I tried creating a PR, not sure if it's any good, especially with the git annex stuff.

dmaes commented 3 weeks ago

@Odilhao thanks for the help. Everything running smoothly on GCS buckets now.