-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Vinícius Miguel <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ARG PG_VERSION=15 | ||
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.12.1 | ||
USER root | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
clang \ | ||
cmake \ | ||
libclang-dev \ | ||
libopenblas-dev \ | ||
pkg-config | ||
|
||
# Install Rust | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/paradedb/pg_analytics | ||
|
||
ARG PG_ANALYTICS_VERSION=v0.1.2 | ||
ARG PG_VERSION=15 | ||
|
||
# Build extension | ||
RUN cd pg_analytics && \ | ||
git fetch origin ${PG_ANALYTICS_VERSION} && \ | ||
git checkout ${PG_ANALYTICS_VERSION} && \ | ||
cargo pgrx init --pg${PG_VERSION} /usr/bin/pg_config && \ | ||
cargo pgrx package |
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 @@ | ||
[extension] | ||
name = "pg_analytics" | ||
version = "0.1.2" | ||
repository = "https://github.com/paradedb/pg_analytics" | ||
license = "AGPL-3.0" | ||
description = "pg_analytics (formerly named pg_lakehouse) puts DuckDB inside Postgres" | ||
homepage = "https://github.com/paradedb/pg_analytics" | ||
documentation = "https://github.com/paradedb/pg_analytics/blob/dev/README.md" | ||
categories = ["analytics", "data_transformations"] | ||
loadable_libraries = [{ library_name = "pg_analytics", requires_restart = true }] | ||
|
||
[dependencies] | ||
apt = ["libc6"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pg_analytics/ | ||
mv target/release/pg_analytics-pg15/usr/lib/postgresql/15/lib/* /usr/lib/postgresql/15/lib | ||
mv target/release/pg_analytics-pg15/usr/share/postgresql/15/extension/* /usr/share/postgresql/15/extension | ||
""" |