Skip to main content

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.2.1

Documentation updates.

1.2.0

Add ability to pull specific image.

1.1.0

Add repository_exists and repository_empty methods.

1.0.0

Initial.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aws-ecr-migration, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size aws_ecr_migration-1.2.1-py3-none-any.whl (16.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aws_ecr_migration-1.2.1.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page