From 8f7ff277794a3daac354cff1eb2b2d5537b77d64 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Thu, 20 Aug 2015 14:32:34 +0000 Subject: Fix MariaDB for ubuntu In MariaDB we adjust the dependecies of what we install there as well adding only what is appropriate for the install. In Ansible we adjust some templates to all work around differences between the different Linux families. Change-Id: Ibc26e2f4d4a732630632d3ed27fb595b6fe019d2 Partially-Implements: blueprint install-from-ubuntu --- docker_templates/galera/Dockerfile.j2 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docker_templates') diff --git a/docker_templates/galera/Dockerfile.j2 b/docker_templates/galera/Dockerfile.j2 index 2d656053a..7856a7f24 100644 --- a/docker_templates/galera/Dockerfile.j2 +++ b/docker_templates/galera/Dockerfile.j2 @@ -26,10 +26,18 @@ RUN yum install -y http://www.percona.com/redir/downloads/percona-release/redhat {% elif base_distro in ['ubuntu', 'debian'] %} -RUN ["/bin/false"] - -# TODO(sdake) when ubuntu support is implemented we will need a line -# && rm -rf /var/lib/mysql/ +# At the end of this run statement we symlink two folders to match the folder +# structure of the RPM family for mysql configs. This allows us to not change +# the config-external.sh code +# TODO(SamYaple): Remove that symlink once config-external is updated +RUN apt-get install -y --no-install-recommends \ + mariadb-galera-server \ + percona-xtrabackup \ + socat \ + expect \ + && apt-get clean \ + && rm -rf /var/lib/mysql/* \ + && ln -s /etc/mysql/conf.d/ /etc/my.cnf.d {% endif %} -- cgit v1.2.3