Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ld.so.conf.d/tembo.conf to base image (#91) #91

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions standard-cnpg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ RUN set -eux; \
# Grab libduckdb from the pg_duckdb trunk package
curl -LO https://cdb-plat-use1-prod-pgtrunkio.s3.amazonaws.com/extensions/pg_duckdb/pg_duckdb-pg${PG_VERSION}-${PG_DUCKDB_VERSION}.tar.gz; \
tar zxvf pg_duckdb-pg${PG_VERSION}-${PG_DUCKDB_VERSION}.tar.gz libduckdb.so; \
ln -s libduckdb.so "libduckdb.${DUCKDB_VERSION}.so"; \
mv libduckdb*.so /usr/local/lib/; \
mv libduckdb.so /usr/local/lib/libduckdb.so.${DUCKDB_VERSION}; \
rm -rf pg_duckdb*; \
ldconfig; \
# Install auto_explain and pg_stat_statements.
Expand Down
6 changes: 5 additions & 1 deletion tembo-pg-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ RUN set -eux; \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

RUN echo "${ALTDIR}/${PG_VERSION}/lib" > /etc/ld.so.conf.d/postgres.conf && \
# Configure ldd to find additional shared libraries in `${ALTDIR}/lib` and
# Postgres versioned libraries in `pg_config --pkglibdir`.
RUN echo "${ALTDIR}/${PG_VERSION}/lib" > /etc/ld.so.conf.d/postgres.conf; \
echo "${ALTDIR}/lib" > /etc/ld.so.conf.d/tembo.conf; \
mkdir -p "${ALTDIR}/lib"; \
ldconfig

WORKDIR /
Expand Down
Loading