Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker Registry Driver Fdsstorage

Introducation

Docker-registry-driver-fdsstroage is the driver of docker-registry with FDS storage. FDS(File Data Service) is the S3-like service from Xiaomi Inc.

With this driver, we can store docker images in FDS easily.

Usage (Recommendation)

Please go to Xiaomi Open Platform and apply for FDS access key and secret key.

Then run docker run -e FDS_DOMAIN=http://files.fds.api.xiaomi.com -e FDS_BUCKET=YOUR_BUCKET -e FDS_ACCESSKEY=YOUR_ACCESSKEY -e FDS_SECRETKEY=YOUR_SECRETKEY -p 5000:5000 tobegit3hub/registry

Notice that FDS_DOMAIN could be https://files.fds.api.xiaomi.com.

Usage via pip

# Install deps for backports.lzma (python2 requires it)
apt-get -y install python-dev liblzma-dev libevent1-dev

# Install pip
apt-get -y install python-pip

# Install docker-registry
pip install flask-cors docker-registry docker-registry-driver-fdsstorage

# Config for fdsstorage
export DOCKER_REGISTRY_CONFIG=./docker-registry-driver-fdsstorage/config/config_fds.yml
export SETTINGS_FLAVOR=fdsstorage

export FDS_DOMAIN=cdn.fds.api.xiaomi.com
export FDS_BUCKET=YOUR_BUCKET
export FDS_ACCESSKEY=YOUR_ACCESSKEY
export FDS_SECRETKEY=YOUR_SECRETKEY

# Run registry
docker-registry

Contributing

In order to verify what you did is ok, just run pip install tox; tox. This will run the tests
provided by docker-registry-core.

For more information, please check docker-registry-readme

Reference

Docker Pull Command
Owner
tobegit3hub

Comments (0)