-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update pg-ext * update jdk naming * fix gpdb py3 bug * debug pgext
- Loading branch information
Showing
9 changed files
with
63 additions
and
29 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,7 +1,7 @@ | ||
# Distributed under the terms of the Modified BSD License. | ||
|
||
ARG BASE_NAMESPACE | ||
ARG BASE_IMG="jdk11" | ||
ARG BASE_IMG="jdk-11" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | ||
|
||
LABEL maintainer="[email protected]" | ||
|
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,23 @@ | ||
# PostgreSQL with extensions | ||
|
||
## Debug | ||
|
||
```shell | ||
BUILDKIT_PROGRESS=plain docker build -t postgres-ext -f ./postgres-ext.Dockerfile --build-arg BASE_NAMESPACE=qpod0dev . | ||
|
||
IMG="qpod/postgres-ext" | ||
|
||
docker run -d \ | ||
--name db-postgres \ | ||
-p 5432:5432 \ | ||
-e POSTGRES_PASSWORD=pg-password \ | ||
$IMG | ||
|
||
ls -alh /usr/share/postgresql/15/extension/*.control | ||
``` | ||
|
||
```sql | ||
SELECT * FROM pg_extension; | ||
SELECT * FROM pg_available_extensions ORDER BY name; | ||
CREATE EXTENSION "vector"; | ||
``` |
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,22 +1,32 @@ | ||
# Distributed under the terms of the Modified BSD License. | ||
|
||
ARG BASE_NAMESPACE | ||
ARG BASE_IMG="base" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} as builder | ||
|
||
ARG PG_MAJOR=15 | ||
FROM library/postgres:${PG_MAJOR:-latest} | ||
ARG BASE_IMG="postgres" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
COPY work /opt/utils/ | ||
COPY --from=builder /opt /opt | ||
|
||
RUN set -x \ | ||
RUN set -x && . /opt/utils/script-utils.sh \ | ||
&& apt-get update && apt-get install -y gettext \ | ||
apt-utils apt-transport-https ca-certificates gnupg2 dirmngr locales sudo lsb-release curl \ | ||
&& envsubst < /opt/utils/install_list_pgext.apt > /opt/utils/install_list_pgext.apt \ | ||
&& . /opt/utils/script-utils.sh \ | ||
&& install_apt /opt/utils/install_list_base.apt \ | ||
&& DISTRO_NAME=$(awk '{ print tolower($0) }' <<< $(lsb_release -is)) \ | ||
&& DISTRO_CODE_NAME=$(lsb_release -cs) \ | ||
# apt source for: https://packagecloud.io/citusdata/community | ||
&& curl -fsSL "https://packagecloud.io/citusdata/community/gpgkey" | gpg --dearmor > /etc/apt/trusted.gpg.d/citusdata_community.gpg \ | ||
&& echo "deb https://packagecloud.io/citusdata/community/${DISTRO_NAME}/ ${DISTRO_CODE_NAME} main" | sudo tee /etc/apt/sources.list.d/citusdata_community.list \ | ||
# apt source for: https://packagecloud.io/timescale/timescaledb | ||
&& curl -fsSL "https://packagecloud.io/timescale/timescaledb/gpgkey" | gpg --dearmor > /etc/apt/trusted.gpg.d/timescale_timescaledb.gpg \ | ||
&& echo "deb https://packagecloud.io/timescale/timescaledb/${DISTRO_NAME}/ ${DISTRO_CODE_NAME} main" | sudo tee /etc/apt/sources.list.d/timescale_timescaledb.list \ | ||
# apt source for: https://packagecloud.io/pigsty/pgsql | ||
&& curl -fsSL "https://packagecloud.io/pigsty/pgsql/gpgkey" | gpg --dearmor > /etc/apt/trusted.gpg.d/pigsty_pgsql.gpg \ | ||
&& echo "deb https://packagecloud.io/pigsty/pgsql/${DISTRO_NAME}/ ${DISTRO_CODE_NAME} main" | sudo tee /etc/apt/sources.list.d/pigsty_pgsql.list \ | ||
&& envsubst < /opt/utils/install_list_pgext.tpl.apt > /opt/utils/install_list_pgext.apt \ | ||
&& rm -rf /opt/utils/install_list_pgext.tpl.apt \ | ||
&& echo "To install PG extensions: $(cat /opt/utils/install_list_pgext.apt)" \ | ||
&& install_apt /opt/utils/install_list_pgext.apt \ | ||
&& ls -alh /usr/share/postgresql/*/extension/*.control | sort \ | ||
&& echo "Clean up" && list_installed_packages && install__clean | ||
|
||
USER postgres | ||
WORKDIR /var/lib/postgresql |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
postgresql-contrib | ||
postgresql-${PG_MAJOR}-postgis* | ||
postgresql-${PG_MAJOR}-pgvector | ||
postgresql-${PG_MAJOR}-cron | ||
postgresql-${PG_MAJOR}-wal2json | ||
timescaledb-2-postgresql-${PG_MAJOR} | ||
postgresql-${PG_MAJOR}-citus-12.1 | ||
pg-graphql % https://github.com/supabase/pg_graphql | ||
pg-net % https://github.com/supabase/pg_net | ||
% postgresql-*-pgdg-pgroonga % TODO: postgresql-15-pgdg-pgroonga : Depends: libgroonga0 (>= 13.0.8) but 13.0.0+dfsg-3~deb12u1 is to be installed | ||
% postgresql-pgml-* % TODO: many python packages | ||
% echo "deb https://apt.postgresml.org ${DISTRO_CODE_NAME} maintainer" | sudo tee /etc/apt/sources.list.d/postgresml.list |