Skip to content

Commit

Permalink
Add ajbool (#293)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <evanstanton@Evans-MBP.fritz.box>
Co-authored-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
3 people authored Jul 26, 2023
1 parent 48ee882 commit 238d2af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/ajbool/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# Clone repository
RUN git clone https://github.com/adjust/ajbool.git

# Set project version
ARG RELEASE=v0.0.2

# Build extension
RUN cd ajbool && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
18 changes: 18 additions & 0 deletions contrib/ajbool/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[extension]
name = "ajbool"
version = "0.0.2"
repository = "https://github.com/adjust/ajbool"
description = "A special boolean type that allows 'unknown' state without being NULL."
documentation = "https://github.com/adjust/ajbool"
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd ajbool && 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 238d2af

Please sign in to comment.