Management project which migrates docker images to/from ECR repositories.
Project description
AWS ECR Migration
Short description
Project used to migrate docker images between cloud and a local machine.
Prerequisites
Local prerequisites
- Docker installed.
- This project installed with:
pip install aws-ecr-migration
or:
./install.sh
Cloud prerequisites
- ECR repository created
Usage
Pulling from ECR repository
from aws_ecr_migration.manage import Manager
from aws_ecr_migration.aws_credentials import AwsCredentials
manager = Manager(
credentials=AwsCredentials(),
remote_repository='remote/repository'
)
manager.pull()
Pushing an image to ECR repository
from aws_ecr_migration.manage import Manager
from aws_ecr_migration.aws_credentials import AwsCredentials
manager = Manager(
credentials=AwsCredentials(),
remote_repository='remote/repository'
)
manager.push_image('myimage')
Pushing a running container to ECR repository
from aws_ecr_migration.manage import Manager
from aws_ecr_migration.aws_credentials import AwsCredentials
manager = Manager(
credentials=AwsCredentials(),
remote_repository='remote/repository'
)
manager.push_container('mycontainer')
Release history
1.0.0
Initial.
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
aws_ecr_migration-1.0.0.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for aws_ecr_migration-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f726a612a57363dde4ec40222ce5863cd31ede2e6f6e4eee2803b1ce58092481 |
|
MD5 | 16e430e35185e9048774686cd7f9cced |
|
BLAKE2b-256 | 57fa623217da465b64a20c5e4d1c744b22031d83ee49198741fd2de574277ed6 |