Skip to content

Commit

Permalink
Xtrabackup moved to Ubuntu 22.04 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Jun 8, 2024
1 parent 0d97140 commit 80e2cb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04 as base
FROM ubuntu:22.04 as base
ARG XTRABACKUP_PACKAGE_VERSION
ARG MYSQL_PACKAGE_VERSION
ARG TARGETPLATFORM
Expand Down Expand Up @@ -30,11 +30,12 @@ COPY /files/install/bin* /usr/local

# xtrabackup-8.0 should always be installed, then ddev-dbserver won't have to install it.
# If on amd64 we'll get it from percona package
# https://downloads.percona.com/downloads/Percona-XtraBackup-8.0/Percona-XtraBackup-8.0.31-24/binary/debian/buster/x86_64/percona-xtrabackup-80_8.0.31-24-1.buster_amd64.deb
# https://downloads.percona.com/downloads/Percona-XtraBackup-8.0/Percona-XtraBackup-8.0.35-30/binary/debian/jammy/x86_64/percona-xtrabackup-80_8.0.35-30-1.jammy_amd64.deb

RUN if [ "$(arch)" = "x86_64" ]; then \
set -eu -o pipefail; \
rm -f /usr/local/bin/xb* /usr/local/bin/xtrabackup* /usr/local/lib/libmysqlservices.a ; \
set -x && curl -s -L --fail -o /tmp/xtrabackup.deb https://downloads.percona.com/downloads/Percona-XtraBackup-8.0/Percona-XtraBackup-${XTRABACKUP_PACKAGE_VERSION%-*}/binary/debian/focal/x86_64/percona-xtrabackup-80_${XTRABACKUP_PACKAGE_VERSION}.focal_amd64.deb && \
set -x && curl -s -L --fail -o /tmp/xtrabackup.deb https://downloads.percona.com/downloads/Percona-XtraBackup-8.0/Percona-XtraBackup-${XTRABACKUP_PACKAGE_VERSION%-*}/binary/debian/jammy/x86_64/percona-xtrabackup-80_${XTRABACKUP_PACKAGE_VERSION}.jammy_amd64.deb && \
dpkg -i /tmp/xtrabackup.deb >/dev/null && \
rm /tmp/xtrabackup.deb ; \
fi
Expand Down

0 comments on commit 80e2cb9

Please sign in to comment.