Compare commits
No commits in common. "6994c3373a01cb5a00790ec1526317df4839ae14" and "62326b9750c92437b4101bf68ad33e9df062aad0" have entirely different histories.
6994c3373a
...
62326b9750
23
dockerfile
23
dockerfile
@ -1,21 +1,10 @@
|
|||||||
FROM mysql:8-debian
|
FROM mysql:8-debian
|
||||||
RUN apt-get update --allow-unauthenticated --allow-insecure-repositories
|
RUN apt-get update --allow-unauthenticated --allow-insecure-repositories
|
||||||
#install supercronic
|
RUN apt-get -y install -qq --force-yes cron
|
||||||
RUN apt-get -y install --force-yes curl
|
RUN echo "Log Start" >> /var/log/cron.log
|
||||||
# Latest releases available at https://github.com/aptible/supercronic/releases
|
|
||||||
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.33/supercronic-linux-amd64 \
|
|
||||||
SUPERCRONIC_SHA1SUM=71b0d58cc53f6bd72cf2f293e09e294b79c666d8 \
|
|
||||||
SUPERCRONIC=supercronic-linux-amd64
|
|
||||||
|
|
||||||
RUN curl -fsSLO "$SUPERCRONIC_URL" \
|
|
||||||
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
|
|
||||||
&& chmod +x "$SUPERCRONIC" \
|
|
||||||
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
|
|
||||||
&& ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic
|
|
||||||
|
|
||||||
RUN mkdir /backup
|
RUN mkdir /backup
|
||||||
ADD backup.sh /usr/local/bin/backup.sh
|
ADD backup.sh /usr/local/bin/
|
||||||
ADD mysqlCron /srv/mysqlCron
|
ADD mysqlCron /etc/cron.d/mysqlCron
|
||||||
RUN chmod 0644 /srv/mysqlCron
|
RUN chmod 0644 /etc/cron.d/mysqlCron
|
||||||
RUN chmod 0744 /usr/local/bin/backup.sh
|
RUN chmod 0744 /usr/local/bin/backup.sh
|
||||||
CMD supercronic /srv/mysqlCron
|
CMD cron && tail -f /var/log/cron.log
|
||||||
Loading…
x
Reference in New Issue
Block a user