-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Storage Driver for Aliyun OSS #514
Conversation
@denverdino This looks like a duplicate of #513. Which one would you like to keep? |
@stevvooe, Steve
If we can abstract S3 driver with the interface, we can have the Aliyun OSS implementation. And currently, I provide the Aliyun OSS GO API in https://github.com/denverdino/aliyungo which refers the API of https://github.com/AdRoll/goamz. So, it should be easy to provide the OSS impl with that. |
@denverdino Why can't the s3 driver be used directly? What is missing? What is different? |
@stevvooe , So if we can have one abstract S3 driver, I can make the OSS Go API provide the compatibility layer to hide the implementation differences. Thanks |
Please sign your commits following these rules: $ git clone -b "master" [email protected]:denverdino/distribution.git somewhere
$ cd somewhere
$ git rebase -i HEAD~5
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Ammending updates the existing PR. You DO NOT need to open a new one. |
@denverdino Let us know if you'll continue work on this PR. We are closing for now. |
@stevvooe Can you reopen this PR? Thanks |
@denverdino Reopened. Please rebase or merge, since a large number of commits seem to have diverged. |
@Stevooe Thank you. I will update that. |
// | ||
// Keep in mind that OSS guarantees only eventual consistency, so do not assume | ||
// that a successful write will mean immediate access to the data written (although | ||
// in most regions a new object put has guaranteed read after write). The only true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note about consistency looks like it's copied from the S3 driver. Is it really valid for OSS as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, OSS provide the similar capability to S3. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS has different consistency guarantees in different regions. I was wondering if OSS also has differences between the regions. If not (or if we're not sure), we should remove the part that says "(although in most regions a new object put has guaranteed read after write)". It's a very minor thing - I just want to make sure the comment is accurate.
@denverdino we fixed the build on master - can you rebase and push -f ? Thanks! |
I have rebased the PR. Thanks! |
Update the comments of the consistence model per Aaron's comment. |
@denverdino: Sorry to request one more change... could you please add build tags to the new files so the driver can be enabled or disabled at compile time? See the rados driver for an example. Once this is done, we should be able to merge this PR. Thanks for the contribution! |
Hi build tag has been added should I change circle.yml and add |
Signed-off-by: tgic <[email protected]>
Signed-off-by: tgic <[email protected]>
Signed-off-by: tgic <[email protected]>
Change-Id: I161522ee51f247fb17e42844b3699bd9031e34e8 Signed-off-by: Li Yi <[email protected]>
Change-Id: Iee49afeda1c11d6af8c0f26c96d8ccc328c22757 Signed-off-by: Li Yi <[email protected]>
Signed-off-by: tgic <[email protected]>
Signed-off-by: tgic <[email protected]>
Signed-off-by: tgic <[email protected]>
Signed-off-by: tgic <[email protected]>
@stevvooe
|
@tg123 Is there a link to documentation? |
@tg123 Imagine I am a user who has never heard of aliyun oss. Where can I go to get information about how it works? |
@tg123 I requested a link in This ensures the user doesn't have to click back to get further information. |
Change-Id: I940fb50f467ce6fc5fbdd9ceb0f9d848e422ced7 Signed-off-by: Li Yi <[email protected]>
@stevvooe but tests did not pass, any way to trigger them again? |
I reran the tests. |
LGTM |
Storage Driver for Aliyun OSS
Merged. Thanks for your contribution! |
@aaronlehmann @stevvooe Thanks for your support |
Hi, please advise if this is wrong place to ask this. I intend to use Docker Containers running on Aliyun ECS Servers. Aliyun only has stock CentOS with a 2.6 kernel. So I intend to update kernel and run containers with docker-compose. Does the driver here mean that I can use a specific storage-driver with docker on the servers I described above and relocate /var/lib/docker on OSS ? |
No, this storage driver is for the Docker Registry, which is a server that provides container images for |
@longwuyuan, you can contact to me for this question with email [email protected]. And you can try the Docker Machine with ECS driver for using Docker on Aliyun, the simple tutorial is enclosed |
Storage Driver for Aliyun OSS
Storage Driver for Aliyun OSS
This driver implements the storagedriver.StorageDriver interface and uses Aliyun OSS Open Storage Service as storage backend.
The documentation for this driver is in https://github.com/denverdino/distribution/blob/master/docs/storage-drivers/oss.md
To run the unit test case for this driver, you need set the following environment variables before
NOTE: This driver reuses the code logic from the S3 driver.
Signed-off-by: Li Yi ([email protected]) Boshi Lian([email protected])