Skip to content

Commit 69030ea

Browse files
authored
Merge pull request #376 from citusdata/ihalatci-patch-3
codeql fixes + workflow error fixes
2 parents 0ec7316 + 11e65aa commit 69030ea

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ LABEL maintainer="Citus Data https://citusdata.com" \
1414
ENV CITUS_VERSION ${VERSION}.citus-1
1515

1616
# install Citus
17+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1718
RUN apt-get update \
1819
&& apt-get install -y --no-install-recommends \
19-
ca-certificates \
20-
curl \
20+
ca-certificates=* \
21+
curl=* \
2122
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
22-
&& apt-get install -y postgresql-$PG_MAJOR-citus-14.0=$CITUS_VERSION \
23-
postgresql-$PG_MAJOR-hll=2.19.citus-1 \
24-
postgresql-$PG_MAJOR-topn=2.7.0.citus-1 \
23+
&& apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR-citus-14.0=$CITUS_VERSION" \
24+
"postgresql-$PG_MAJOR-hll=2.19.citus-1" \
25+
"postgresql-$PG_MAJOR-topn=2.7.0.citus-1" \
2526
&& apt-get purge -y --auto-remove curl \
2627
&& rm -rf /var/lib/apt/lists/*
2728

@@ -33,10 +34,10 @@ COPY 001-create-citus-extension.sql /docker-entrypoint-initdb.d/
3334

3435
# add health check script
3536
COPY pg_healthcheck wait-for-manager.sh /
36-
RUN chmod +x /wait-for-manager.sh
37+
RUN chmod +x /wait-for-manager.sh \
38+
&& sed "/unset PGPASSWORD/d" -i /usr/local/bin/docker-entrypoint.sh
3739

3840
# entry point unsets PGPASSWORD, but we need it to connect to workers
3941
# https://github.com/docker-library/postgres/blob/33bccfcaddd0679f55ee1028c012d26cd196537d/12/docker-entrypoint.sh#L303
40-
RUN sed "/unset PGPASSWORD/d" -i /usr/local/bin/docker-entrypoint.sh
4142

4243
HEALTHCHECK --interval=4s --start-period=6s CMD ./pg_healthcheck

nightly/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ LABEL maintainer="Citus Data https://citusdata.com" \
99
org.label-schema.schema-version="1.0"
1010

1111
# Perform prerequisites for Citus Nightly Installation
12-
RUN apt-key del 1530DF18 \
13-
&& rm -rf /etc/apt/sources.list.d/citusdata_community.list \
12+
RUN rm -f /etc/apt/keyrings/citusdata_community-archive-keyring.gpg \
13+
/etc/apt/trusted.gpg.d/citusdata_community.gpg \
14+
/etc/apt/sources.list.d/citusdata_community.list \
1415
&& apt-get update \
1516
&& apt-get install -y --no-install-recommends \
1617
ca-certificates \

pkgvars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
postgres_18_version=18.1
22
postgres_17_version=17.6
33
postgres_16_version=16.10
4-
postgres_14_version=14.15
54

0 commit comments

Comments
 (0)