You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Update user guide and tests to Ubuntu 22.04.
20.04 is EOL so update the user guide and tests to 22.04.
The contributing guide was updated to 22.04 in d55836e7e
.
This commit is contained in:
@@ -11,7 +11,7 @@ auto_cancellation: $CIRRUS_BRANCH != 'integration'
|
|||||||
# ----------------------------------------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
||||||
# arm64_task:
|
# arm64_task:
|
||||||
# arm_container:
|
# arm_container:
|
||||||
# image: ubuntu:20.04
|
# image: ubuntu:22.04
|
||||||
# cpu: 4
|
# cpu: 4
|
||||||
# memory: 2G
|
# memory: 2G
|
||||||
|
|
||||||
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -28,14 +28,11 @@ jobs:
|
|||||||
# tackle the slowest tests first.
|
# tackle the slowest tests first.
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# All integration tests for oldest Debian
|
|
||||||
- param: test --vm=u20 --param=module=integration
|
|
||||||
|
|
||||||
# All tests (without coverage or valgrind) for 32-bit
|
# All tests (without coverage or valgrind) for 32-bit
|
||||||
- param: test --vm=d11 --param=no-performance --param=no-coverage --param=no-valgrind
|
- param: test --vm=d11 --param=no-performance --param=no-coverage --param=no-valgrind
|
||||||
|
|
||||||
# Debian/Ubuntu documentation
|
# Debian/Ubuntu documentation
|
||||||
- param: doc --vm=u20
|
- param: doc --vm=u22
|
||||||
|
|
||||||
# All integration tests
|
# All integration tests
|
||||||
- param: test --vm=u22 --param=build-package --param=module=integration
|
- param: test --vm=u22 --param=build-package --param=module=integration
|
||||||
|
@@ -248,7 +248,7 @@ eval
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Generate deployment docs for Debian
|
# Generate deployment docs for Debian
|
||||||
if (!defined($strVm) || $strVm eq VM_U20)
|
if (!defined($strVm) || $strVm eq VM_U22)
|
||||||
{
|
{
|
||||||
&log(INFO, "Generate Debian/Ubuntu documentation");
|
&log(INFO, "Generate Debian/Ubuntu documentation");
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
<variable key="os-type-is-rhel">'{[os-type]}' eq '{[os-rhel]}'</variable>
|
<variable key="os-type-is-rhel">'{[os-type]}' eq '{[os-rhel]}'</variable>
|
||||||
|
|
||||||
<!-- Defines the container image that will be used to build the host -->
|
<!-- Defines the container image that will be used to build the host -->
|
||||||
<variable key="os-image" if="{[os-type-is-debian]}">ubuntu:20.04</variable>
|
<variable key="os-image" if="{[os-type-is-debian]}">ubuntu:22.04</variable>
|
||||||
<variable key="os-image" if="{[os-type-is-rhel]}">rockylinux/rockylinux:8</variable>
|
<variable key="os-image" if="{[os-type-is-rhel]}">rockylinux/rockylinux:8</variable>
|
||||||
|
|
||||||
<variable key="user-guide-subtitle" if="{[os-type-is-debian]}">{[os-debian-title]}</variable>
|
<variable key="user-guide-subtitle" if="{[os-type-is-debian]}">{[os-debian-title]}</variable>
|
||||||
@@ -312,11 +312,13 @@
|
|||||||
# Fix root tty
|
# Fix root tty
|
||||||
RUN sed -i 's/^mesg n/tty -s \&\& mesg n/g' /root/.profile
|
RUN sed -i 's/^mesg n/tty -s \&\& mesg n/g' /root/.profile
|
||||||
|
|
||||||
|
# Non-interactive install
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Install base packages (suppress dpkg interactive output)
|
# Install base packages (suppress dpkg interactive output)
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
RUN rm /etc/apt/apt.conf.d/70debconf && \
|
||||||
rm /etc/apt/apt.conf.d/70debconf && \
|
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends sudo ssh wget vim gnupg lsb-release iputils-ping ca-certificates \
|
apt-get install -y --no-install-recommends sudo ssh curl vim gnupg lsb-release iputils-ping ca-certificates \
|
||||||
tzdata locales libssh2-1-dev 2>&1
|
tzdata locales libssh2-1-dev 2>&1
|
||||||
|
|
||||||
{[sudo-disable-core-dump]}
|
{[sudo-disable-core-dump]}
|
||||||
@@ -324,19 +326,17 @@
|
|||||||
# Install CA certificate
|
# Install CA certificate
|
||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
|
|
||||||
|
# Allow RSA keys in ssh
|
||||||
|
RUN echo 'PubkeyAcceptedAlgorithms +ssh-rsa' >> /etc/ssh/sshd_config
|
||||||
|
|
||||||
# Install PostgreSQL
|
# Install PostgreSQL
|
||||||
RUN RELEASE_CODENAME=`lsb_release -c | awk '{print $2}'` && \
|
RUN apt-get install -y --no-install-recommends postgresql-common 2>&1
|
||||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ '${RELEASE_CODENAME?}'-pgdg main' | \
|
RUN /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
|
||||||
tee -a /etc/apt/sources.list.d/pgdg.list && \
|
RUN sed -i 's/^\#create\_main\_cluster.*$/create\_main\_cluster \= false/' /etc/postgresql-common/createcluster.conf
|
||||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - && \
|
RUN apt-get install -y --no-install-recommends postgresql-{[pg-version]} postgresql-{[pg-version-upgrade]} 2>&1
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends postgresql-common 2>&1 && \
|
|
||||||
sed -i 's/^\#create\_main\_cluster.*$/create\_main\_cluster \= false/' \
|
|
||||||
/etc/postgresql-common/createcluster.conf && \
|
|
||||||
apt-get install -y --no-install-recommends postgresql-{[pg-version]} postgresql-{[pg-version-upgrade]} 2>&1
|
|
||||||
|
|
||||||
# Install Azure CLI
|
# Install Azure CLI
|
||||||
RUN apt-get install -y azure-cli
|
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
|
||||||
|
|
||||||
# Create an ssh key for root so all hosts can ssh to each other as root
|
# Create an ssh key for root so all hosts can ssh to each other as root
|
||||||
RUN \ {[ssh-key-install]}
|
RUN \ {[ssh-key-install]}
|
||||||
|
@@ -34,4 +34,3 @@
|
|||||||
x86_64:
|
x86_64:
|
||||||
d11: be044bf120ca3e7d8bed69d5a83b4de4926be87f
|
d11: be044bf120ca3e7d8bed69d5a83b4de4926be87f
|
||||||
rh8: 4d141c845abfbdbf402ba447cf2bd2e4357c8a63
|
rh8: 4d141c845abfbdbf402ba447cf2bd2e4357c8a63
|
||||||
u20: d9618e4e2380da312152cf672ff56cfb8ec8abe2
|
|
||||||
|
@@ -438,7 +438,7 @@ sub containerBuild
|
|||||||
" libbz2-dev bzip2 libyaml-dev libjson-pp-perl liblz4-dev liblz4-tool gnupg lsb-release ccache meson \\\n" .
|
" libbz2-dev bzip2 libyaml-dev libjson-pp-perl liblz4-dev liblz4-tool gnupg lsb-release ccache meson \\\n" .
|
||||||
" libssh2-1-dev libcurl4-openssl-dev";
|
" libssh2-1-dev libcurl4-openssl-dev";
|
||||||
|
|
||||||
if ($strOS eq VM_U20 || $strOS eq VM_U22)
|
if ($strOS eq VM_U22)
|
||||||
{
|
{
|
||||||
$strScript .= " valgrind";
|
$strScript .= " valgrind";
|
||||||
}
|
}
|
||||||
|
@@ -85,13 +85,11 @@ use constant VM_RH8 => 'rh8';
|
|||||||
push @EXPORT, qw(VM_RH8);
|
push @EXPORT, qw(VM_RH8);
|
||||||
use constant VM_F42 => 'f42';
|
use constant VM_F42 => 'f42';
|
||||||
push @EXPORT, qw(VM_F42);
|
push @EXPORT, qw(VM_F42);
|
||||||
use constant VM_U20 => 'u20';
|
|
||||||
push @EXPORT, qw(VM_U20);
|
|
||||||
use constant VM_U22 => 'u22';
|
use constant VM_U22 => 'u22';
|
||||||
push @EXPORT, qw(VM_U22);
|
push @EXPORT, qw(VM_U22);
|
||||||
|
|
||||||
# List of default test VMs
|
# List of default test VMs
|
||||||
use constant VM_LIST => (VM_U20, VM_D11, VM_RH8, VM_U22);
|
use constant VM_LIST => (VM_D11, VM_RH8, VM_U22);
|
||||||
push @EXPORT, qw(VM_LIST);
|
push @EXPORT, qw(VM_LIST);
|
||||||
|
|
||||||
my $oyVm =
|
my $oyVm =
|
||||||
@@ -186,6 +184,7 @@ my $oyVm =
|
|||||||
PG_VERSION_14,
|
PG_VERSION_14,
|
||||||
PG_VERSION_15,
|
PG_VERSION_15,
|
||||||
PG_VERSION_16,
|
PG_VERSION_16,
|
||||||
|
PG_VERSION_17,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -216,38 +215,6 @@ my $oyVm =
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
# Ubuntu 20.04
|
|
||||||
&VM_U20 =>
|
|
||||||
{
|
|
||||||
&VM_OS_BASE => VM_OS_BASE_DEBIAN,
|
|
||||||
&VM_IMAGE => 'ubuntu:20.04',
|
|
||||||
&VM_ARCH => VM_ARCH_X86_64,
|
|
||||||
&VMDEF_COVERAGE_C => true,
|
|
||||||
&VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
|
|
||||||
|
|
||||||
&VMDEF_WITH_ZST => true,
|
|
||||||
|
|
||||||
&VM_DB =>
|
|
||||||
[
|
|
||||||
PG_VERSION_95,
|
|
||||||
PG_VERSION_96,
|
|
||||||
PG_VERSION_10,
|
|
||||||
PG_VERSION_11,
|
|
||||||
PG_VERSION_12,
|
|
||||||
PG_VERSION_13,
|
|
||||||
PG_VERSION_14,
|
|
||||||
PG_VERSION_15,
|
|
||||||
PG_VERSION_16,
|
|
||||||
PG_VERSION_17,
|
|
||||||
],
|
|
||||||
|
|
||||||
&VM_DB_TEST =>
|
|
||||||
[
|
|
||||||
PG_VERSION_95,
|
|
||||||
PG_VERSION_96,
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
# Ubuntu 22.04
|
# Ubuntu 22.04
|
||||||
&VM_U22 =>
|
&VM_U22 =>
|
||||||
{
|
{
|
||||||
@@ -276,10 +243,11 @@ my $oyVm =
|
|||||||
|
|
||||||
&VM_DB_TEST =>
|
&VM_DB_TEST =>
|
||||||
[
|
[
|
||||||
|
PG_VERSION_95,
|
||||||
|
PG_VERSION_96,
|
||||||
PG_VERSION_10,
|
PG_VERSION_10,
|
||||||
PG_VERSION_11,
|
PG_VERSION_11,
|
||||||
PG_VERSION_12,
|
PG_VERSION_12,
|
||||||
PG_VERSION_17,
|
|
||||||
PG_VERSION_18,
|
PG_VERSION_18,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
# Suppress issues in libssh2 on Ubuntu 20.04
|
|
||||||
{
|
|
||||||
libssh2_ubuntu_20_04
|
|
||||||
Memcheck:Addr1
|
|
||||||
...
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1
|
|
||||||
...
|
|
||||||
}
|
|
||||||
{
|
|
||||||
libssh2_ubuntu_20_04
|
|
||||||
Memcheck:Leak
|
|
||||||
...
|
|
||||||
obj:/usr/lib/x86_64-linux-gnu/libssh2.so.1.0.1
|
|
||||||
...
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user