Skip to content

Commit b28af30

Browse files
committed
Updating from pgx 0.4.2 to 0.4.5. Update latest Ubuntu to Jammy (22.04) LTS, edits for testing. Build on Focal currently fails missing glibc
1 parent 6626283 commit b28af30

File tree

5 files changed

+14
-42
lines changed

5 files changed

+14
-42
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ pg_test = []
2020

2121
#pgx = { git = "https://github.com/zombodb/pgx", branch = "develop" }
2222
#pgx-macros = { git = "https://github.com/zombodb/pgx", branch = "develop" }
23-
pgx = "0.4.2"
24-
pgx-macros = "0.4.2"
23+
pgx = "0.4.5"
24+
pgx-macros = "0.4.5"
2525

2626
#pgx-utils = { git = "https://github.com/zombodb/pgx", branch = "develop" }
27-
pgx-utils = "0.4.2"
27+
pgx-utils = "0.4.5"
2828

2929
[dev-dependencies]
3030
#pgx-tests = { git = "https://github.com/zombodb/pgx", branch = "develop" }
31-
pgx-tests = "0.4.2"
31+
pgx-tests = "0.4.5"
3232

3333

3434
[profile.dev]

build/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BASE=$(dirname `pwd`)
2121
VERSION=$(cat $BASE/pgdd.control | grep default_version | cut -f2 -d\')
2222
LOGDIR=${BASE}/target/logs
2323
ARTIFACTDIR=${BASE}/target/artifacts
24-
PGXVERSION=0.4.2
24+
PGXVERSION=0.4.5
2525

2626
PG_VERS=("pg10" "pg11" "pg12" "pg13" "pg14")
2727
#PG_VERS=("pg14")
@@ -35,7 +35,7 @@ echo "PGX Version: ${PGXVERSION}"
3535
mkdir -p ${LOGDIR}
3636
mkdir -p ${ARTIFACTDIR}
3737

38-
for image in `ls docker/` ; do
38+
for image in `ls docker/ | grep jammy` ; do
3939

4040
OS_DIST=$(echo ${image}|cut -f2 -d-)
4141
OS_VER=$(echo ${image}|cut -f3 -d-)

build/docker/pgdd-ubuntu-focal/Dockerfile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/
1616
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
1717
RUN apt-get update && apt-get upgrade -y
1818
RUN apt-get install -y \
19-
clang-10 llvm-10 clang libz-dev strace pkg-config \
19+
clang-12 llvm-12 clang libz-dev strace pkg-config \
2020
libxml2 libxml2-dev libreadline8 libreadline-gplv2-dev \
2121
flex bison libbison-dev build-essential \
2222
zlib1g-dev libxslt-dev libssl-dev libxml2-utils xsltproc libgss-dev \
@@ -41,21 +41,4 @@ ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4141

4242
RUN /bin/bash rustup.sh -y \
4343
&& cargo install cargo-pgx --version ${PGXVERSION}
44-
#RUN /bin/bash rustup.sh -y \
45-
# && cargo install --force --git "https://github.com/zombodb/pgx" \
46-
# --branch "develop" \
47-
# "cargo-pgx"
48-
49-
50-
RUN mkdir -p /home/${USER}/.pgx/data-10 \
51-
&& mkdir /home/${USER}/.pgx/data-11 \
52-
&& mkdir /home/${USER}/.pgx/data-12 \
53-
&& mkdir /home/${USER}/.pgx/data-13 \
54-
&& mkdir /home/${USER}/.pgx/data-14
55-
56-
RUN cargo pgx init \
57-
--pg10=/usr/lib/postgresql/10/bin/pg_config \
58-
--pg11=/usr/lib/postgresql/11/bin/pg_config \
59-
--pg12=/usr/lib/postgresql/12/bin/pg_config \
60-
--pg13=/usr/lib/postgresql/13/bin/pg_config \
61-
--pg14=/usr/lib/postgresql/14/bin/pg_config
44+

build/docker/pgdd-ubuntu-impish/Dockerfile renamed to build/docker/pgdd-ubuntu-jammy/Dockerfile

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:impish
1+
FROM ubuntu:jammy
22

33
LABEL maintainer="PgDD Project - https://github.com/rustprooflabs/pgdd"
44

@@ -12,11 +12,11 @@ RUN useradd -m ${USER} --uid=${UID}
1212

1313
ARG DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get update && apt-get upgrade -y && apt-get install -y make wget curl gnupg git
15-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ impish-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
15+
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
1616
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
1717
RUN apt-get update && apt-get upgrade -y --fix-missing
1818
RUN apt-get install -y --fix-missing \
19-
clang-13 llvm-13 clang libz-dev strace pkg-config \
19+
clang-14 llvm-14 clang libz-dev strace pkg-config \
2020
libxml2 libxml2-dev libreadline8 libreadline-dev \
2121
flex bison libbison-dev build-essential \
2222
zlib1g-dev libxslt-dev libssl-dev libxml2-utils xsltproc libgss-dev \
@@ -42,17 +42,3 @@ ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4242

4343
RUN /bin/bash rustup.sh -y \
4444
&& cargo install cargo-pgx --version ${PGXVERSION}
45-
46-
47-
RUN mkdir -p /home/${USER}/.pgx/data-10 \
48-
&& mkdir /home/${USER}/.pgx/data-11 \
49-
&& mkdir /home/${USER}/.pgx/data-12 \
50-
&& mkdir /home/${USER}/.pgx/data-13 \
51-
&& mkdir /home/${USER}/.pgx/data-14
52-
53-
RUN cargo pgx init \
54-
--pg10=/usr/lib/postgresql/10/bin/pg_config \
55-
--pg11=/usr/lib/postgresql/11/bin/pg_config \
56-
--pg12=/usr/lib/postgresql/12/bin/pg_config \
57-
--pg13=/usr/lib/postgresql/13/bin/pg_config \
58-
--pg14=/usr/lib/postgresql/14/bin/pg_config

build/package.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ fi
2727

2828
PKG_FORMAT=deb
2929

30+
echo " Running pgx init for ${PG_VER}"
31+
$(cargo pgx init --${PG_VER} download)
32+
3033
echo "Changing to build dir..."
3134
cd /build
3235

0 commit comments

Comments
 (0)