forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outputs/postgresql: change config param use_uint8 to uint64_type
In the future, there might be other options for handling uint8 types (e.g. using doubles). This change makes the config forward-compatible for such options.
- Loading branch information
Showing
6 changed files
with
50 additions
and
9 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,26 @@ | ||
# This Dockerfile can be used to build an image including the pguint extension. | ||
# | ||
# docker build -t postgres:pguint . | ||
# docker run -d -t postgres -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:pguint | ||
# docker logs -f postgres 2>&1 | grep -q 'listening on IPv4 address "0.0.0.0", port 5432' | ||
# go test -v | ||
|
||
# Tag from https://hub.docker.com/_/postgres?tab=tags | ||
ARG POSTGRES_TAG=latest | ||
|
||
ARG PGUINT_REPO | ||
ARG PGUINT_RELEASE | ||
|
||
FROM postgres:${POSTGRES_TAG} | ||
|
||
RUN apt-get update && apt-get install -y build-essential curl postgresql-server-dev-${PG_MAJOR}=${PG_VERSION} | ||
|
||
ENV PGUINT_REPO=${PGUINT_REPO:-phemmer/pguint} | ||
ENV PGUINT_REF=${PGUINT_REF:-fix-getmsgint64} | ||
RUN mkdir /pguint && cd /pguint && \ | ||
curl -L https://github.com/${PGUINT_REPO}/tarball/${PGUINT_REF} | tar -zx --strip-components=1 && \ | ||
make && make install && \ | ||
echo 'CREATE EXTENSION uint;' > /docker-entrypoint-initdb.d/uint.sql && \ | ||
echo '\\c template1' >> /docker-entrypoint-initdb.d/uint.sql && \ | ||
echo 'CREATE EXTENSION uint;' >> /docker-entrypoint-initdb.d/uint.sql | ||
|
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
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
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
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
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