Skip to content

Commit

Permalink
Add pg_extra_time (#533)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <[email protected]>
Co-authored-by: Ian Stanton <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent 5ab7aca commit 4b2970e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions contrib/pg_extra_time/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Clone repository
RUN git clone https://github.com/bigsmoke/pg_extra_time.git

ARG RELEASE=v1.1.0

# Build extension
RUN cd pg_extra_time && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make

18 changes: 18 additions & 0 deletions contrib/pg_extra_time/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[extension]
name = "pg_extra_time"
version = "1.1.0"
repository = "https://github.com/bigsmoke/pg_extra_time"
license = "PostgreSQL"
description = "Additional date time functions."
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pg_extra_time && make install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""

0 comments on commit 4b2970e

Please sign in to comment.