need higher version of pgcopydb

This commit is contained in:
BodoBolero
2024-11-06 10:35:26 +01:00
parent 0e524c969b
commit 0799fd6fca
2 changed files with 14 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ jobs:
PG_CONFIG: /tmp/neon/pg_install/v16/bin/pg_config
runs-on: [ self-hosted, us-east-2, x64 ]
container:
image: neondatabase/build-tools:pinned-bookworm
image: neondatabase/build-tools:62b0e0c53ed967d40b302d322ee0aa76626cac5f3d20b47bed6b7ee8350c78d2-bookworm-x64
credentials:
username: ${{ secrets.NEON_DOCKERHUB_USERNAME }}
password: ${{ secrets.NEON_DOCKERHUB_PASSWORD }}
@@ -88,11 +88,11 @@ jobs:
- name: invoke pg_config
run: |
/tmp/neon/pg_install/v16/bin/pg_config --bindir
${PG_CONFIG} --bindir
- name: Install pgcopydb
- name: Invoke pgcopydb
run: |
apt update
apt-get install pgcopydb
pgcopydb --version
pgcopydb --help
bench:

View File

@@ -55,9 +55,18 @@ RUN set -e \
xz-utils \
zlib1g-dev \
zstd \
$([[ "${DEBIAN_VERSION}" = "bookworm" ]] && echo pgcopydb || true) \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Conditional installation of pgcopydb from unstable repository for Bookworm only (need version 0.17-1 or higher)
RUN if [ "${DEBIAN_VERSION}" = "bookworm" ]; then \
echo "deb http://deb.debian.org/debian unstable main" > /etc/apt/sources.list.d/unstable.list \
&& apt update \
&& apt install -y -t unstable pgcopydb \
&& rm /etc/apt/sources.list.d/unstable.list \
&& apt update \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
fi
# sql_exporter
# Keep the version the same as in compute/compute-node.Dockerfile and