summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-09-04 05:03:24 +0000
committerGerrit Code Review <review@openstack.org>2019-09-04 05:03:24 +0000
commit1b159c7d6a40f194e34c2083fb840c620382567e (patch)
treed38f7330fc559f434021537e4f971751e3f99069
parent57b8db8faeba96b75dea564d117cd00a955d60b6 (diff)
parentc23c1b9d0c532b5fb0eff97d99e44fb2fa5156cc (diff)
downloadtrove-1b159c7d6a40f194e34c2083fb840c620382567e.tar.gz
Merge "Improve image build"
-rw-r--r--integration/scripts/files/elements/guest-agent/package-installs.yaml1
-rwxr-xr-xintegration/scripts/files/elements/ubuntu-xenial-mysql/install.d/30-mysql66
2 files changed, 35 insertions, 32 deletions
diff --git a/integration/scripts/files/elements/guest-agent/package-installs.yaml b/integration/scripts/files/elements/guest-agent/package-installs.yaml
index ff870104..582d48bc 100644
--- a/integration/scripts/files/elements/guest-agent/package-installs.yaml
+++ b/integration/scripts/files/elements/guest-agent/package-installs.yaml
@@ -37,7 +37,6 @@ lsof:
net-tools:
netbase:
netcat-openbsd:
-network-scripts:
open-vm-tools:
arch: i386, amd64
openssh-client:
diff --git a/integration/scripts/files/elements/ubuntu-xenial-mysql/install.d/30-mysql b/integration/scripts/files/elements/ubuntu-xenial-mysql/install.d/30-mysql
index a0002df1..9730decb 100755
--- a/integration/scripts/files/elements/ubuntu-xenial-mysql/install.d/30-mysql
+++ b/integration/scripts/files/elements/ubuntu-xenial-mysql/install.d/30-mysql
@@ -11,37 +11,42 @@ export DEBIAN_FRONTEND=noninteractive
apt-get --allow-unauthenticated -y install mysql-client mysql-server
# Xenial provides mysql 5.7 which requires percona-xtrabackup-24
-
PXB_VERSION_OVERRIDE=24
-PKGS=$(apt-cache search percona-xtrabackup-${PXB_VERSION_OVERRIDE})
-if [[ "$PKGS" == *"percona-xtrabackup-$PXB_VERSION_OVERRIDE"* ]]; then
- apt-get --allow-unauthenticated -y install percona-xtrabackup-${PXB_VERSION_OVERRIDE}
-else
- # Architecture is not supported by percona website. Compile and install it
- PXB_VERSION=${PXB_VERSION_OVERRIDE:0:1}.${PXB_VERSION_OVERRIDE:1:1}
-
- apt-get --allow-unauthenticated -y install build-essential flex bison automake autoconf \
- libtool cmake libaio-dev mysql-client libncurses-dev zlib1g-dev \
- libgcrypt11-dev libev-dev libcurl4-gnutls-dev vim-common
-
- pushd /tmp
-
- git clone https://github.com/percona/percona-xtrabackup.git
- cd percona-xtrabackup
- git checkout $PXB_VERSION
-
- mkdir /tmp/boost
- cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF && make -j4
- make install
- ln -s /usr/local/xtrabackup/bin/* /usr/bin/
-
- dpkg -P build-essential automake autoconf libtool cmake
- apt-get -y clean
-
- popd
-
- rm -rf /tmp/boost /tmp/percona-xtrabackup
-fi
+#PKGS=$(apt-cache search percona-xtrabackup-${PXB_VERSION_OVERRIDE})
+#if [[ "$PKGS" == *"percona-xtrabackup-$PXB_VERSION_OVERRIDE"* ]]; then
+# apt-get --allow-unauthenticated -y install percona-xtrabackup-${PXB_VERSION_OVERRIDE}
+#else
+# # Architecture is not supported by percona website. Compile and install it
+# PXB_VERSION=${PXB_VERSION_OVERRIDE:0:1}.${PXB_VERSION_OVERRIDE:1:1}
+#
+# apt-get --allow-unauthenticated -y install build-essential flex bison automake autoconf \
+# libtool cmake libaio-dev mysql-client libncurses-dev zlib1g-dev \
+# libgcrypt11-dev libev-dev libcurl4-gnutls-dev vim-common
+#
+# pushd /tmp
+#
+# git clone https://github.com/percona/percona-xtrabackup.git
+# cd percona-xtrabackup
+# git checkout $PXB_VERSION
+#
+# mkdir /tmp/boost
+# cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF && make -j4
+# make install
+# ln -s /usr/local/xtrabackup/bin/* /usr/bin/
+#
+# dpkg -P build-essential automake autoconf libtool cmake
+# apt-get -y clean
+#
+# popd
+#
+# rm -rf /tmp/boost /tmp/percona-xtrabackup
+#fi
+
+# NOTE(lxkong): Refer to https://www.percona.com/doc/percona-xtrabackup/2.4/installation/apt_repo.html
+wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
+dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
+apt-get update
+apt-get --allow-unauthenticated -y install percona-xtrabackup-${PXB_VERSION_OVERRIDE}
cat >/etc/mysql/conf.d/no_perf_schema.cnf <<_EOF_
[mysqld]
@@ -62,4 +67,3 @@ if [ -e /etc/init/mysql.conf ]; then
fi
systemctl enable mysql
-