Skip to content

Commit 805aaa9

Browse files
committed
Merge branch 'develop' of github.com:silinternational/mysql-backup-restore into feature/gerry-rig-codeship-steps
2 parents 9a5289b + ca80c89 commit 805aaa9

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
FROM alpine:3.11
1+
FROM python:3-alpine
22

3+
# Current version of s3cmd is in edge/testing repo
4+
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
5+
6+
# Install everything via repo, because repo & pip installs can break things
37
RUN apk update \
48
&& apk add --no-cache \
59
bash \
610
mysql-client \
7-
python py-pip \
8-
&& pip install s3cmd python-magic
11+
py3-magic \
12+
py3-dateutil \
13+
py3-six \
14+
s3cmd
915

1016
COPY application/ /data/
1117
WORKDIR /data

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ This image is built automatically on Docker Hub as [silintl/mysql-backup-restore
3333
You'll need [Docker](https://www.docker.com/get-docker), [Docker Compose](https://docs.docker.com/compose/install/), and [Make](https://www.gnu.org/software/make/).
3434

3535
1. cd .../mysql-backup-restore
36-
2. mkdir ./mybackups
37-
3. cp -p test/world.sql.gz ./mybackups
36+
3. Upload test/world.sql.gz to the S3 bucket.
3837
4. `make db` # creates the MySQL DB server
3938
5. `make restore` # restores the DB dump file
4039
6. `docker ps -a` # get the Container ID of the exited restore container

0 commit comments

Comments
 (0)