Skip to content

Commit 07b91b7

Browse files
Merge pull request #33 from rustprooflabs/build-fix--bump-versions
Fixing build and more updates
2 parents 6626283 + e2da024 commit 07b91b7

File tree

5 files changed

+27
-49
lines changed

5 files changed

+27
-49
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/ ` ; 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: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ RUN useradd -m ${USER} --uid=${UID}
1111

1212

1313
ARG DEBIAN_FRONTEND=noninteractive
14-
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/ focal-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
16-
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
17-
RUN apt-get update && apt-get upgrade -y
18-
RUN apt-get install -y \
19-
clang-10 llvm-10 clang libz-dev strace pkg-config \
14+
RUN apt-get update && apt-get upgrade -y \
15+
&& apt-get install -y make wget curl gnupg git postgresql-common
16+
17+
RUN sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
18+
19+
RUN apt-get update && apt-get upgrade -y --fix-missing
20+
RUN apt-get install -y --fix-missing \
21+
clang-12 llvm-12 clang libz-dev strace pkg-config \
2022
libxml2 libxml2-dev libreadline8 libreadline-gplv2-dev \
2123
flex bison libbison-dev build-essential \
2224
zlib1g-dev libxslt-dev libssl-dev libxml2-utils xsltproc libgss-dev \
@@ -41,21 +43,4 @@ ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4143

4244
RUN /bin/bash rustup.sh -y \
4345
&& 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
46+

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

Lines changed: 7 additions & 19 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

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

1212

1313
ARG DEBIAN_FRONTEND=noninteractive
14-
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 \
16-
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
14+
RUN apt-get update && apt-get upgrade -y \
15+
&& apt-get install -y make wget curl gnupg git postgresql-common
16+
17+
RUN sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
18+
1719
RUN apt-get update && apt-get upgrade -y --fix-missing
1820
RUN apt-get install -y --fix-missing \
19-
clang-13 llvm-13 clang libz-dev strace pkg-config \
21+
clang-14 llvm-14 clang libz-dev strace pkg-config \
2022
libxml2 libxml2-dev libreadline8 libreadline-dev \
2123
flex bison libbison-dev build-essential \
2224
zlib1g-dev libxslt-dev libssl-dev libxml2-utils xsltproc libgss-dev \
@@ -42,17 +44,3 @@ ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4244

4345
RUN /bin/bash rustup.sh -y \
4446
&& 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: 5 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

@@ -55,6 +58,8 @@ find ./ -name "*.so" -exec strip {} \;
5558
#
5659
OUTNAME=pgdd_${VERSION}_${OSNAME}_${PG_VER}_amd64
5760
if [ "${PKG_FORMAT}" == "deb" ]; then
61+
rm ${OUTNAME}.deb || true
62+
5863
fpm \
5964
-s dir \
6065
-t deb \

0 commit comments

Comments
 (0)