Skip to content

Commit e2da024

Browse files
committed
Adjusting Pg installation in build
1 parent 1946490 commit e2da024

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo "PGX Version: ${PGXVERSION}"
3535
mkdir -p ${LOGDIR}
3636
mkdir -p ${ARTIFACTDIR}
3737

38-
for image in `ls docker/ | grep focal` ; 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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ 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 -
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 \
1921
clang-12 llvm-12 clang libz-dev strace pkg-config \

build/docker/pgdd-ubuntu-jammy/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ 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/ jammy-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 \
1921
clang-14 llvm-14 clang libz-dev strace pkg-config \

0 commit comments

Comments
 (0)