[READ-ONLY] Mirror of https://github.com/andrioid/mysql-from-s3. MySQL server that seeds from S3 when run for the first time.
730 B
21 lines
1FROM mysql:5.6
2
3ENV GOF3R_VERSION=0.4.10 AWS_ACCESS_KEY_ID=none AWS_SECRET_ACCESS_KEY=none S3_BUCKET="none" S3_OBJ="test.sql"
4
5
6# Install supervisor and s3gof3r
7RUN apt-get update && \
8 apt-get -y install wget ca-certificates lsof pv && \
9 wget https://github.com/rlmcpherson/s3gof3r/releases/download/v0.4.10/gof3r_${GOF3R_VERSION}_linux_amd64.tar.gz \
10 -O gof3r.tar.gz --no-check-certificate && \
11 tar xvfz gof3r.tar.gz && \
12 cd gof3r_${GOF3R_VERSION}_linux_amd64 && \
13 echo "log-error /dev/stderr > /etc/mysql/conf.d/logerror" && \
14 cp gof3r /usr/local/bin
15
16COPY docker-entrypoint.sh /entrypoint.sh
17COPY my-mini.cnf /my-mini.cnf
18
19RUN chmod 755 /*.sh
20
21# TODO: Do something to reduce the MySQL footprint, or get bigger machines