Skip to content

Commit 88da943

Browse files
authored
Merge pull request #215 from sap-contributions/alicloud_storage-cli
Cloud controller blobstore documentation for AliCloud OSS
2 parents 7040121 + b92392c commit 88da943

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

common/cc-blobstore-config.html.md.erb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This document describes the following common blobstore configurations:
2626
* [Fog with AWS IAM Instance Profiles](#fog-aws-iam)
2727
* [Fog with Google Cloud Storage](#fog-gcs)
2828
* [Fog with Google Cloud Storage Service Accounts](#fog-gcs-service-account)
29+
* [Storage CLI with AliCloud Storage](#storage-cli-alicloud)
2930
* [Storage CLI with Azure Storage](#storage-cli-azure)
3031
* [Fog with Other S3 Compatible Stores](#fog-s3-other)
3132
* [Fog with NFS](#fog-local-nfs)
@@ -416,6 +417,62 @@ To configure your blobstores to use Azure Storage credentials, do the following:
416417

417418
1. You can provide further configuration through the `connection_config` hash, which is passed through to the [`Storage CLI`](https://github.com/cloudfoundry/storage-cli) implementation.
418419

420+
##<a id="storage-cli-alicloud"></a>Storage CLI with AliCloud Object Storage Service (OSS)
421+
422+
To configure an AliCloud OSS blobstore using the storage-cli implementation, do the following:
423+
424+
1. Insert this configuration into your manifest under `properties.cc`:
425+
426+
```
427+
cc:
428+
buildpacks:
429+
blobstore_provider: aliyun
430+
blobstore_type: storage-cli
431+
buildpack_directory_key: YOUR-ALICLOUD-BUILDPACK-CONTAINER
432+
connection_config:
433+
aliyun_accesskey_id: YOUR-ALICLOUD-ACCESSKEY-ID
434+
aliyun_accesskey_secret: YOUR-ALICLOUD-ACCESSKEY-SECRET
435+
aliyun_oss_bucket: YOUR-ALICLOUD-BUILDPACK-CONTAINER
436+
aliyun_oss_endpoint: YOUR-ALICLOUD-OSS-ENDPOINT
437+
aliyun_region_id: YOUR-ALICLOUD-REGION-ID
438+
droplets:
439+
blobstore_provider: aliyun
440+
blobstore_type: storage-cli
441+
buildpack_directory_key: YOUR-ALICLOUD-DROPLET-CONTAINER
442+
connection_config:
443+
aliyun_accesskey_id: YOUR-ALICLOUD-ACCESSKEY-ID
444+
aliyun_accesskey_secret: YOUR-ALICLOUD-ACCESSKEY-SECRET
445+
aliyun_oss_bucket: YOUR-ALICLOUD-DROPLET-CONTAINER
446+
aliyun_oss_endpoint: YOUR-ALICLOUD-OSS-ENDPOINT
447+
aliyun_region_id: YOUR-ALICLOUD-REGION-ID
448+
packages:
449+
blobstore_provider: aliyun
450+
blobstore_type: storage-cli
451+
buildpack_directory_key: YOUR-ALICLOUD-PACKAGE-CONTAINER
452+
connection_config:
453+
aliyun_accesskey_id: YOUR-ALICLOUD-ACCESSKEY-ID
454+
aliyun_accesskey_secret: YOUR-ALICLOUD-ACCESSKEY-SECRET
455+
aliyun_oss_bucket: YOUR-ALICLOUD-PACKAGE-CONTAINER
456+
aliyun_oss_endpoint: YOUR-ALICLOUD-OSS-ENDPOINT
457+
aliyun_region_id: YOUR-ALICLOUD-REGION-ID
458+
resource_pool:
459+
blobstore_provider: aliyun
460+
blobstore_type: storage-cli
461+
buildpack_directory_key: YOUR-ALICLOUD-RESOURCE-CONTAINER
462+
connection_config:
463+
aliyun_accesskey_id: YOUR-ALICLOUD-ACCESSKEY-ID
464+
aliyun_accesskey_secret: YOUR-ALICLOUD-ACCESSKEY-SECRET
465+
aliyun_oss_bucket: YOUR-ALICLOUD-RESOURCE-CONTAINER
466+
aliyun_oss_endpoint: YOUR-ALICLOUD-OSS-ENDPOINT
467+
aliyun_region_id: YOUR-ALICLOUD-REGION-ID
468+
```
469+
470+
1. Replace `YOUR-ALICLOUD-ACCESSKEY-ID` and `YOUR-ALICLOUD-ACCESSKEY-SECRET` with your AliCloud OSS credentials.
471+
472+
1. Replace `YOUR-ALICLOUD-BUILDPACK-CONTAINER`, `YOUR-ALICLOUD-DROPLET-CONTAINER`, `YOUR-ALICLOUD-PACKAGE-CONTAINER`, and `YOUR-ALICLOUD-RESOURCE-CONTAINER` with the names of your AliCloud OSS buckets. For the bucket naming restrictions, see [Bucket naming conventions][alicloud-name-restrictions].
473+
474+
1. Replace `YOUR-ALICLOUD-OSS-ENDPOINT` and `YOUR-ALICLOUD-REGION-ID` with the endpoint and region of your AliCloud OSS buckets. For more information, see [Regions and endpoints][alicloud-regions-and-endpoints] in the AliCloud documentation.
475+
419476
##<a id="fog-s3-other"></a> Fog with Other S3 Compatible Stores
420477

421478
Using Fog blobstores with other S3 compatible stores, such as Minio or EMC Elastic Cloud Storage is similar to AWS, and uses the same Fog adapter, but requires slightly different configuration:
@@ -563,3 +620,5 @@ To configure your blobstores to use the WebDAV protocol, perform the steps below
563620

564621

565622
[azure-name-restrictions]: https://docs.microsoft.com/en-us/azure/architecture/best-practices/naming-conventions#storage
623+
[alicloud-name-restrictions]: https://www.alibabacloud.com/help/en/oss/user-guide/bucket-naming-conventions
624+
[alicloud-regions-and-endpoints]: https://www.alibabacloud.com/help/en/oss/user-guide/regions-and-endpoints

0 commit comments

Comments
 (0)