-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates repo with PG 16 changes (#345)
* Adds pg 16 * Fixes version problem * Fixes alpine version * Updates tools tags
- Loading branch information
1 parent
22eb14b
commit 5429707
Showing
9 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file is auto generated from it's template, | ||
# see citusdata/tools/packaging_automation/templates/docker/latest/latest.tmpl.dockerfile. | ||
FROM postgres:15.4 | ||
ARG VERSION=12.1.0 | ||
LABEL maintainer="Citus Data https://citusdata.com" \ | ||
org.label-schema.name="Citus" \ | ||
org.label-schema.description="Scalable PostgreSQL for multi-tenant and real-time workloads" \ | ||
org.label-schema.url="https://www.citusdata.com" \ | ||
org.label-schema.vcs-url="https://github.com/citusdata/citus" \ | ||
org.label-schema.vendor="Citus Data, Inc." \ | ||
org.label-schema.version=${VERSION} \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ENV CITUS_VERSION ${VERSION}.citus-1 | ||
|
||
# install Citus | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
&& curl -s https://install.citusdata.com/community/deb.sh | bash \ | ||
&& apt-get install -y postgresql-$PG_MAJOR-citus-12.1=$CITUS_VERSION \ | ||
postgresql-$PG_MAJOR-hll=2.18.citus-1 \ | ||
postgresql-$PG_MAJOR-topn=2.6.0.citus-1 \ | ||
&& apt-get purge -y --auto-remove curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# add citus to default PostgreSQL config | ||
RUN echo "shared_preload_libraries='citus'" >> /usr/share/postgresql/postgresql.conf.sample | ||
|
||
# add scripts to run after initdb | ||
COPY 001-create-citus-extension.sql /docker-entrypoint-initdb.d/ | ||
|
||
# add health check script | ||
COPY pg_healthcheck wait-for-manager.sh / | ||
RUN chmod +x /wait-for-manager.sh | ||
|
||
# entry point unsets PGPASSWORD, but we need it to connect to workers | ||
# https://github.com/docker-library/postgres/blob/33bccfcaddd0679f55ee1028c012d26cd196537d/12/docker-entrypoint.sh#L303 | ||
RUN sed "/unset PGPASSWORD/d" -i /usr/local/bin/docker-entrypoint.sh | ||
|
||
HEALTHCHECK --interval=4s --start-period=6s CMD ./pg_healthcheck |