Skip to content

kerwin/docker-registry-driver-sinastorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker registry sinastorage driver

This is a docker-registry backend driver for Sina Cloud Storage.

Usage (recommendation)

Go to Sina Cloud Storage to get your access_key first.

Run docker-registry service by docker container

docker run --rm \
  -e SETTINGS_FLAVOR=sinastorage \
  -e SINASTORAGE_BUCKET=YOUR_BUCKET \
  -e SINASTORAGE_ACCESSKEY=YOUR_ACCESSKEY \
  -e SINASTORAGE_SECRETKEY=YOUR_SECRETKEY \
  -p 5000:5000 \
  --name registry \
  kerwin/docker-registry-sinastorage

Usage via pip

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

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

# Install docker-registry
pip install docker-registry

# finally
pip install docker-registry-driver-sinastorage

export DOCKER_REGISTRY_CONFIG=/usr/local/lib/python2.7/dist-packages/config/config_sinastorage.yml
export SETTINGS_FLAVOR=sinastorage

export SINASTORAGE_BUCKET=YOUR_BUCKET
export SINASTORAGE_ACCESSKEY=YOUR_ACCESSKEY
export SINASTORAGE_SECRETKEY=YOUR_SECRETKEY
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, plz check docker-registry-readme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published