diff options
| author | Zuul <zuul@review.openstack.org> | 2018-11-06 20:09:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-11-06 20:09:43 +0000 |
| commit | 9b0f15bf4c74f9990f679c84e9abe3b45317e7c6 (patch) | |
| tree | 05f724a70218c0325d7c98c84891a769703eee3b /docker/xtrabackup/Dockerfile.j2 | |
| parent | 401f7fd234de9bec49c3ea602a14062cd0c81099 (diff) | |
| parent | 25de6deb4b229413c89eb9592d116fa621b15ade (diff) | |
| download | kolla-9b0f15bf4c74f9990f679c84e9abe3b45317e7c6.tar.gz kolla-9b0f15bf4c74f9990f679c84e9abe3b45317e7c6.zip | |
Merge "Introduce Percona XtraBackup image"
Diffstat (limited to 'docker/xtrabackup/Dockerfile.j2')
| -rw-r--r-- | docker/xtrabackup/Dockerfile.j2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker/xtrabackup/Dockerfile.j2 b/docker/xtrabackup/Dockerfile.j2 new file mode 100644 index 000000000..72fd82288 --- /dev/null +++ b/docker/xtrabackup/Dockerfile.j2 @@ -0,0 +1,24 @@ +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block xtrabackup_header %}{% endblock %} + +{% import "macros.j2" as macros with context %} + +{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} +RUN yum-config-manager --enable percona\* +{% endif %} + +{% if base_distro in ['centos', 'oraclelinux', 'rhel', 'ubuntu', 'debian'] %} + {% set xtrabackup_packages = ['percona-xtrabackup-24', 'qpress'] %} +{% endif %} + +{{ macros.install_packages(xtrabackup_packages | customizable("packages")) }} + +COPY backup.sh /usr/local/bin/kolla_mariadb_backup.sh +RUN chmod 755 /usr/local/bin/kolla_mariadb_backup.sh + +CMD /usr/local/bin/kolla_mariadb_backup.sh + +{% block xtrabackup_footer %}{% endblock %} +{% block footer %}{% endblock %} |
