Skip to content

Commit 9f3d092

Browse files
committed
added open pr for pg17 Compatibility
1 parent dd42e5d commit 9f3d092

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docker/exporter/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ RUN ${PACKAGER} -y install --nodocs \
1616
&& ${PACKAGER} -y clean all ;
1717

1818
RUN wget https://go.dev/dl/go1.23.0.linux-amd64.tar.gz && tar -xzf go1.23.0.linux-amd64.tar.gz && mv go /usr/local
19+
ENV PATH=$PATH:/usr/local/go/bin
1920

20-
RUN git clone https://github.com/prometheus-community/postgres_exporter.git && cd postgres_exporter && make build
21+
RUN git clone https://github.com/prometheus-community/postgres_exporter.git && cd postgres_exporter \
22+
# fix for pg17
23+
&& git fetch origin pull/1072/head:pr-pg17 && git fetch origin pull/1072/head:pr-pg17 && git merge pr-pg17 \
24+
&& make build;
2125

2226
FROM ${CONTAINERIMAGE}
2327
COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init

0 commit comments

Comments
 (0)