-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into edgarrmondragon/feat/_sdc_postgres_schema
- Loading branch information
Showing
17 changed files
with
1,534 additions
and
1,290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pip==24.2 | ||
poetry==1.8.3 | ||
pip==24.3.1 | ||
poetry==1.8.4 | ||
tox==4.23.2 |
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
FROM postgres:16 | ||
ARG POSTGRES_VERSION=17 | ||
FROM postgres:${POSTGRES_VERSION} | ||
|
||
RUN apt-get update | ||
RUN apt-mark hold locales | ||
RUN apt-get install curl ca-certificates -y | ||
RUN install -d /usr/share/postgresql-common/pgdg | ||
RUN curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc | ||
RUN sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | ||
RUN apt-get update | ||
RUN apt-get install postgresql-server-dev-16 -y | ||
RUN sh -c 'export PATH=/usr/lib/postgresql/16/bin:$PATH' | ||
RUN apt-get install postgresql-16-wal2json -y | ||
ARG POSTGRES_VERSION=17 | ||
|
||
# Install prerequisites and configure PostgreSQL for wal2json | ||
RUN apt-get update && apt-mark hold locales && \ | ||
apt-get install -y curl ca-certificates && \ | ||
install -d /usr/share/postgresql-common/pgdg && \ | ||
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ | ||
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | ||
|
||
RUN echo "Setting up PostgreSQL ${POSTGRES_VERSION} with wal2json" && \ | ||
apt-get update && \ | ||
apt-get install -y postgresql-server-dev-${POSTGRES_VERSION} && \ | ||
export PATH=/usr/lib/postgresql/${POSTGRES_VERSION}/bin:$PATH && \ | ||
apt-get install -y postgresql-${POSTGRES_VERSION}-wal2json |
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
Oops, something went wrong.