Skip to content

docker image registry sync tools. Currently supports aws ecr - actually can just be replaced with bash :-D

License

Notifications You must be signed in to change notification settings

japzio/docker-registry-helpers

Repository files navigation

Project

docker image registry sync tools. Currently supports aws ecr

Status

Build Status

Runtime Requirements

  • python3
  • docker

Dependencies

  • boto3
  • docker-py (1.X)

PyPi Upload Utility(ies)

  • twine

Creat Dists

./setup.py sdist --formats=gztar,zip

Upload to PiPy

twine upload (--skip-existing) dist/ecr2ecr-VERSION.tar.gz or zip

Installation

pip3 install ecr2ecr

Usage as installed

ecr2ecr -s us-west-2 -d us-east-1 -n image-name(repository) -t latest

Exit Codes

  • 1 - registry login issue
  • 2 - image pulling issue
  • 3 - image tagging issue
  • 4 - image pushing issue

Usage as src

python3 -m ecr2ecr.core -s us-west-2 -d us-east-1 -n image-name -t latest

Arguments

  • -s --source-region region where the image should be pulled from.
  • -d --destination-region region where the image will be pushed to.
  • -n --image-name image:tag format
  • -t --image-tag image:tag format
  • -v --verbose switch to enable verbose logging level

Author

@japzio

Credits

TrustArc, Inc.

License

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ https://opensource.org/licenses/Apache-2.0

About

docker image registry sync tools. Currently supports aws ecr - actually can just be replaced with bash :-D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages