Skip to content

Commit 14dc383

Browse files
authored
Merge pull request #12 from silinternational/develop
Upgrading python 2.x to python 3.x
2 parents d158299 + 07d4547 commit 14dc383

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You'll need [Docker](https://www.docker.com/get-docker), [Docker Compose](https:
3434

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

0 commit comments

Comments
 (0)