Skip to content

Commit 93142be

Browse files
authored
Merge pull request #74 from bchew/docker-multiarch
Docker fixes/improvements
2 parents 5222e94 + 1bacecd commit 93142be

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
steps:
1717
- name: Check out the repo
1818
uses: actions/checkout@v2
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v1
1925

2026
- name: Log in to Docker Hub
2127
uses: docker/login-action@v1
@@ -33,6 +39,7 @@ jobs:
3339
uses: docker/build-push-action@v2
3440
with:
3541
context: .
42+
platforms: linux/amd64,linux/arm64
3643
push: true
3744
tags: ${{ steps.meta.outputs.tags }}
3845
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ COPY ./requirements.txt /mnt/dynamodump/requirements.txt
44
COPY ./dynamodump/dynamodump.py /usr/local/bin/dynamodump
55

66
RUN pip install -r /mnt/dynamodump/requirements.txt
7+
8+
ENTRYPOINT ["dynamodump" , "-h" ]

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ Suitable for DynamoDB usages of smaller data volume which do not warrant the usa
1111

1212
dynamodump supports local DynamoDB instances as well (tested with [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html)).
1313

14+
15+
## Table of Contents
16+
17+
- [Installation](#installation)
18+
- [Usage](#usage)
19+
- [Script (unattended) usage](#script-unattended-usage)
20+
- [Docker CLI usage](#docker-cli-usage)
21+
- [AWS example](#aws-example)
22+
- [Local example](#local-example)
23+
- [Development](#development)
24+
1425
## Installation
1526

1627
```
@@ -100,6 +111,12 @@ Backup files are stored in a 'dump' subdirectory, and are restored from there as
100111

101112
As of v1.2.0, note that `--noConfirm` is required to perform data restores involving deletions without any confirmation.
102113

114+
## Docker CLI usage
115+
116+
```
117+
docker run --rm -it bchew/dynamodump -h
118+
```
119+
103120
## AWS example
104121

105122
Single table backup/restore:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="dynamodump",
8-
version="1.3.2",
8+
version="1.3.3",
99
author="Benny Chew",
1010
author_email="[email protected]",
1111
description="Simple backup and restore for Amazon DynamoDB using AWS SDK for Python (boto3)",

0 commit comments

Comments
 (0)