-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (26 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:18.04
LABEL maintainer="Jean Cardona"
LABEL description="Mariadb Mariabackup - forked from https://github.com/khoanguyen96/dockerfiles/tree/master/percona-xtrabackup"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gnupg software-properties-common wget gnupg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 \
0xF1656F24C74CD1D8 \
&& add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mariadb.mirror.nucleus.be/repo/10.4/ubuntu bionic main'
RUN cd /tmp \
&& wget --no-check-certificate https://repo.percona.com/apt/percona-release_0.1-4.xenial_all.deb \
&& dpkg -i percona* \
&& rm percona*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
mariadb-backup qpress\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy Backup Scripts
COPY scripts/* /usr/local/bin/
RUN chmod +x -R /usr/local/bin
VOLUME /backups/mysql /etc/mysql
WORKDIR /backups/mysql
SHELL ["/bin/bash", "-c"]