Docker registry ali oss driver
Project description
docker-registry-driver-alioss
=============================
This is a docker-registry backend driver based on the Open Storage Service from aliyun.com.
Usage
=========
Assuming you have a working docker-registry and oss api setup(you can get it here: http://aliyunecs.oss-cn-hangzhou.aliyuncs.com/OSS_Python_API_20140509.zip).
get source code and run:
python setup.py install
Edit your configuration so that storage reads ali oss.
Config
=========
You should add all the following configurations to your main docker-registry configuration to further configure it, which by default is config/config.yml.
alioss configrations:
* storage: specify the storage to use, should be alwasy alioss
* storage_path: specify the path prefix in the oss bucket
* oss_bucket: specify the bucket where you want to store these images for your registry
* oss_accessid: the access id for the oss bucket, which you get from aliyun.com
* oss_accesskey: the access key for the oss bucket, which you get from aliyun.com
example <you can copy this example into your config.yml, and modify it accordingly>:
oss: &oss
<<: *common
storage: alioss
storage_path: _env:STORAGE_PATH:/devregistry/
oss_bucket: _env:OSS_BUCKET[:default_value]
oss_accessid: _env:OSS_KEY[:your_access_id]
oss_accesskey: _env:OSS_SECRET[:your_access_key]
Options
=========
When you run docker-registry, you can use the following two methods to configure the storage:
* if you run docker-registry on your local host, export these configurations if you want to modify the default value in the configured in the config.yml:
export SETTINGS_FLAVOR=oss
export STORAGE_PATH=<the prefix of the storage path>
export OSS_BUCKET=<your oss bucket>
export OSS_KEY=<your access id>
export OSS_SECRET=<your access key>
* if you run docker-registry on your docker container, remmeber to specify these settings as cmd args:
docker run \
-e SETTINGS_FLAVOR=oss \
-e STORAGE_PATH=/dockerregistry/ \
-e OSS_BUCKET=docker-registry \
-e OSS_KEY=<your access id> \
-e OSS_SECRET=<your access key> \
-e SEARCH_BACKEND=sqlalchemy \
-p 5000:5000 \
registry
License
=========
This is licensed under the Apache license. Most of the code here comes from docker-registry, under an Apache license as well.
=============================
This is a docker-registry backend driver based on the Open Storage Service from aliyun.com.
Usage
=========
Assuming you have a working docker-registry and oss api setup(you can get it here: http://aliyunecs.oss-cn-hangzhou.aliyuncs.com/OSS_Python_API_20140509.zip).
get source code and run:
python setup.py install
Edit your configuration so that storage reads ali oss.
Config
=========
You should add all the following configurations to your main docker-registry configuration to further configure it, which by default is config/config.yml.
alioss configrations:
* storage: specify the storage to use, should be alwasy alioss
* storage_path: specify the path prefix in the oss bucket
* oss_bucket: specify the bucket where you want to store these images for your registry
* oss_accessid: the access id for the oss bucket, which you get from aliyun.com
* oss_accesskey: the access key for the oss bucket, which you get from aliyun.com
example <you can copy this example into your config.yml, and modify it accordingly>:
oss: &oss
<<: *common
storage: alioss
storage_path: _env:STORAGE_PATH:/devregistry/
oss_bucket: _env:OSS_BUCKET[:default_value]
oss_accessid: _env:OSS_KEY[:your_access_id]
oss_accesskey: _env:OSS_SECRET[:your_access_key]
Options
=========
When you run docker-registry, you can use the following two methods to configure the storage:
* if you run docker-registry on your local host, export these configurations if you want to modify the default value in the configured in the config.yml:
export SETTINGS_FLAVOR=oss
export STORAGE_PATH=<the prefix of the storage path>
export OSS_BUCKET=<your oss bucket>
export OSS_KEY=<your access id>
export OSS_SECRET=<your access key>
* if you run docker-registry on your docker container, remmeber to specify these settings as cmd args:
docker run \
-e SETTINGS_FLAVOR=oss \
-e STORAGE_PATH=/dockerregistry/ \
-e OSS_BUCKET=docker-registry \
-e OSS_KEY=<your access id> \
-e OSS_SECRET=<your access key> \
-e SEARCH_BACKEND=sqlalchemy \
-p 5000:5000 \
registry
License
=========
This is licensed under the Apache license. Most of the code here comes from docker-registry, under an Apache license as well.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for docker-registry-driver-alioss-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85544e3adbb9b52f8a92348ef4601afaec8d78285fb61ee4ba3acec9528f701 |
|
MD5 | 44aa7306e18a72c3b2b537e62eaabdef |
|
BLAKE2b-256 | 5d704a6de1b38e07f162c592b03ba568820cd19de99ce29caac35d7c11ee384b |
Close
Hashes for docker_registry_driver_alioss-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f450c816d0294d0fa5f49cfc7d392221e45745af75958abce7912662751b4bf3 |
|
MD5 | db65f1784696258057cf9a94ff1febc9 |
|
BLAKE2b-256 | 9f83b03b7162a2c1a2829591f63e78d8121e0242bb289cd1206b898abff561e0 |