aws-ecr-migration-1.2.1
توضیحات
Management project which migrates docker images to/from ECR repositories.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | aws-ecr-migration-1.2.1 |
| نام | aws-ecr-migration |
| نسخه کتابخانه | 1.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Laimonas Sutkus |
| ایمیل نویسنده | laimonas@myhealthyapps.com |
| آدرس صفحه اصلی | https://github.com/laimonassutkus/AwsEcrMigration |
| آدرس اینترنتی | https://pypi.org/project/aws-ecr-migration/ |
| مجوز | - |
# 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:
```bash
pip install aws-ecr-migration
```
or:
```bash
./install.sh
```
#### Cloud prerequisites
- ECR repository created
## Usage
#### Pulling from ECR repository
```python
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
```python
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
```python
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
| - | botocore |
| <1.17.0,>=1.16.0 | awscli |
نحوه نصب
نصب پکیج whl aws-ecr-migration-1.2.1:
pip install aws-ecr-migration-1.2.1.whl
نصب پکیج tar.gz aws-ecr-migration-1.2.1:
pip install aws-ecr-migration-1.2.1.tar.gz