diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index aea5cc87..08b6ca13 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,6 +16,12 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 - name: Log in to Docker Hub uses: docker/login-action@v1 @@ -33,6 +39,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index 32548853..283d649c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,3 +4,5 @@ COPY ./requirements.txt /mnt/dynamodump/requirements.txt COPY ./dynamodump/dynamodump.py /usr/local/bin/dynamodump RUN pip install -r /mnt/dynamodump/requirements.txt + +ENTRYPOINT ["dynamodump" , "-h" ] diff --git a/README.md b/README.md index abbd80a5..47f26e3e 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,17 @@ Suitable for DynamoDB usages of smaller data volume which do not warrant the usa dynamodump supports local DynamoDB instances as well (tested with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html)). + +## Table of Contents + +- [Installation](#installation) +- [Usage](#usage) +- [Script (unattended) usage](#script-unattended-usage) +- [Docker CLI usage](#docker-cli-usage) +- [AWS example](#aws-example) +- [Local example](#local-example) +- [Development](#development) + ## Installation ``` @@ -100,6 +111,12 @@ Backup files are stored in a 'dump' subdirectory, and are restored from there as As of v1.2.0, note that `--noConfirm` is required to perform data restores involving deletions without any confirmation. +## Docker CLI usage + +``` +docker run --rm -it bchew/dynamodump -h +``` + ## AWS example Single table backup/restore: diff --git a/setup.py b/setup.py index edd558bf..9122897b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="dynamodump", - version="1.3.2", + version="1.3.3", author="Benny Chew", author_email="noreply@bennychew.com", description="Simple backup and restore for Amazon DynamoDB using AWS SDK for Python (boto3)",