Docker registry ufile driver
Project description
# Docker registry ufile driver
This is a [docker-registry backend driver](https://github.com/dotcloud/docker-registry/tree/master/depends/docker-registry-core) based on the [UFile](http://www.ucloud.cn/product/ufile_main/) key-value storage.
[![PyPI version][pypi-image]][pypi-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![License][license-image]][pypi-url]
## Usage
Assuming you have a working docker-registry
`pip install docker-registry-driver-ufile`
Edit your configuration so that `storage` reads `ufile`.
## Options
You may add any of the following to your main docker-registry configuration to further configure it.
1. `ufile_baseurl`: your ufile bucket url, like `http://your-bucket.ufile.ucloud.cn` (scheme included), you should use internal url like `http://your-bucket.ufile.cn-north-03.ucloud.cn` if possible
1. `ufile_public_key`: ucloud public key
1. `ufile_private_key`: ucloud private key
1. `ufile_retries`: total retries if an http request fails (default 3)
1. `ufile_retry_interval`: if a http request fails, wait several seconds before trying again (default 1)
1. `ufile_timeout`: seconds to wait for the operation complete (default 60)
Example:
```yaml
ufile:
<<: *common
storage: ufile
ufile_baseurl: http://your-bucket.ufile.ucloud.cn
ufile_public_key: your-ucloud-public-key
ufile_private_key: your-ucloud-private-key
ufile_retries: 3
ufile_retry_interval: 1
ufile_timeout: 60
```
## Developer setup
Clone this.
Setup test environment:
```
pip install tox
```
Start the test `ufile`:
```
tox
```
You are ready to hack.
In order to verify what you did is ok, just run `tox`.
This will run the tests provided by [`docker-registry-core`](https://github.com/dotcloud/docker-registry/tree/master/depends/docker-registry-core)
## License
This is licensed under the Apache license.
Most of the code here comes from docker-registry, under an Apache license as well.
[pypi-url]: https://pypi.python.org/pypi/docker-registry-driver-ufile
[pypi-image]: https://pypip.in/version/docker-registry-driver-ufile/badge.svg?style=flat
[license-image]: https://pypip.in/license/docker-registry-driver-ufile/badge.svg?style=flat
[travis-url]: https://travis-ci.org/SkyLothar/docker-registry-driver-ufile
[travis-image]: https://travis-ci.org/SkyLothar/docker-registry-driver-ufile.svg
[coverage-url]: https://coveralls.io/r/SkyLothar/docker-registry-driver-ufile
[coverage-image]: https://coveralls.io/repos/SkyLothar/docker-registry-driver-ufile/badge.svg
This is a [docker-registry backend driver](https://github.com/dotcloud/docker-registry/tree/master/depends/docker-registry-core) based on the [UFile](http://www.ucloud.cn/product/ufile_main/) key-value storage.
[![PyPI version][pypi-image]][pypi-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![License][license-image]][pypi-url]
## Usage
Assuming you have a working docker-registry
`pip install docker-registry-driver-ufile`
Edit your configuration so that `storage` reads `ufile`.
## Options
You may add any of the following to your main docker-registry configuration to further configure it.
1. `ufile_baseurl`: your ufile bucket url, like `http://your-bucket.ufile.ucloud.cn` (scheme included), you should use internal url like `http://your-bucket.ufile.cn-north-03.ucloud.cn` if possible
1. `ufile_public_key`: ucloud public key
1. `ufile_private_key`: ucloud private key
1. `ufile_retries`: total retries if an http request fails (default 3)
1. `ufile_retry_interval`: if a http request fails, wait several seconds before trying again (default 1)
1. `ufile_timeout`: seconds to wait for the operation complete (default 60)
Example:
```yaml
ufile:
<<: *common
storage: ufile
ufile_baseurl: http://your-bucket.ufile.ucloud.cn
ufile_public_key: your-ucloud-public-key
ufile_private_key: your-ucloud-private-key
ufile_retries: 3
ufile_retry_interval: 1
ufile_timeout: 60
```
## Developer setup
Clone this.
Setup test environment:
```
pip install tox
```
Start the test `ufile`:
```
tox
```
You are ready to hack.
In order to verify what you did is ok, just run `tox`.
This will run the tests provided by [`docker-registry-core`](https://github.com/dotcloud/docker-registry/tree/master/depends/docker-registry-core)
## License
This is licensed under the Apache license.
Most of the code here comes from docker-registry, under an Apache license as well.
[pypi-url]: https://pypi.python.org/pypi/docker-registry-driver-ufile
[pypi-image]: https://pypip.in/version/docker-registry-driver-ufile/badge.svg?style=flat
[license-image]: https://pypip.in/license/docker-registry-driver-ufile/badge.svg?style=flat
[travis-url]: https://travis-ci.org/SkyLothar/docker-registry-driver-ufile
[travis-image]: https://travis-ci.org/SkyLothar/docker-registry-driver-ufile.svg
[coverage-url]: https://coveralls.io/r/SkyLothar/docker-registry-driver-ufile
[coverage-image]: https://coveralls.io/repos/SkyLothar/docker-registry-driver-ufile/badge.svg
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
Close
Hashes for docker-registry-driver-ufile-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16664d94bc10665619dc3611cd71b867755a096b0bd4e321a08b5bc1e4b5041c |
|
MD5 | 1bc8ec4792c384cbeba49ec80493f431 |
|
BLAKE2b-256 | dfc26306aab428402b8ff456eb28e74e2217ee1683ea5242df31ea9e1f3ab98b |