-
Notifications
You must be signed in to change notification settings - Fork 16
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: Evan Stanton <evanstanton@Evans-MBP.fritz.box> Co-authored-by: Ian Stanton <ian@coredb.io>
- Loading branch information
1 parent
c58f1aa
commit b17665b
Showing
2 changed files
with
34 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,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/timescale/pg_prometheus.git | ||
|
||
# Set project version | ||
ARG RELEASE=0.2.2 | ||
|
||
# Build extension | ||
RUN cd pg_prometheus && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make |
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,19 @@ | ||
[extension] | ||
name = "pg_prometheus" | ||
version = "0.2.2" | ||
repository = "https://github.com/timescale/pg_prometheus" | ||
license = "Apache-2.0" | ||
description = "PostgreSQL extension for Prometheus data." | ||
documentation = "https://github.com/timescale/pg_prometheus" | ||
categories = ["metrics"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pg_prometheus && 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 | ||
""" |