-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Support S3 compatible storage #32937
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
Support S3 compatible storage #32937
Conversation
Hi @gaelreyrol. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me test instance |
Hi @gaelreyrol. Thank you for your request. I'm working on Magento instance for you. |
Hi @gaelreyrol, here is your Magento Instance: https://0ccad1232b70dd0542afe8ebd29e0193.instances.magento-community.engineering |
@magento run Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run WebAPI Tests, Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
✔️ QA Passed Hello @gaelreyrol, We have tested this PR with localstack with following steps:
Thanks for the contribution. |
Can't you better use yes/no field for the path style? |
I used 1/0 to stay consistent with the other options of the cli. |
Yeah but it's cast to boolean anyway. |
I think it's preferable to stay consistent about the usage of the cli 😉 |
Hi @gaelreyrol, thank you for your contribution! |
Hello, Thank you for this MR ! Do we know if this will be released in the Feature Releases of January 18 ? Or will it be for 2.4.4 in March ? |
Hello, I am testing this with local MinIO docker service (php service -> minio service). I have also tested my credentials via manual commands with postman and everything works ok, but my installation command fails with this error
My installation command looks like this:
Even installing magento first and then setting config value results in the same error
I did some digging and during setting these config values there is a routine, that tries to create this file, but url, that driver constructs at
results in this objecturl Even though I enabled storage path style. So correct url should be
Is this correct behaviour? (how can I fix this?) |
Hi @zapotocnylubos, You really should create a separate issue and not comment a PR that from what I understand does not have much to do with your problem. You can of course link this PR if you really think it is related. Regards, |
Hi @zapotocnylubos, There is an issue with path style parameter in this MR. Here is the patch :
|
Description
This PR should allow users to configure the endpoint and path style for S3 compatible storage like Minio or services like Clever Cloud Cellar.
Fixed Issues
Fixes #32114
Manual testing scenarios
Start Minio with Docker and create a bucket with s3cmd.
Setup Magento Remote storage:
Sync media folders:
Comments
As
$config
seems to be directly passed toS3Client
, I though it did not need any specific unit or integration tests.A PR is waiting on the devdocs : magento/devdocs#8914