File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
images/prometheus-exporters/php-fpm Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1- FROM {{ "golang" | image_tag }} as build
2- USER root
3- RUN {{ "upx-ucl" | apt_install }}
4- USER nobody
5- RUN go get -d github.com/bakins/php-fpm-exporter && cd /go/src/github.com/bakins/php-fpm-exporter && \
6- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" ./cmd/php-fpm-exporter && \
7- upx --brute php-fpm-exporter && cp php-fpm-exporter /go/bin
1+ FROM {{ "golang1.15" | image_tag }} as build
2+ ENV SOURCE_REPO=https://github.com/olivierbeytrison/php-fpm-exporter
83
4+ USER nobody
5+ RUN git clone $SOURCE_REPO && \
6+ cd php-fpm-exporter && \
7+ ./script/build
98
109FROM {{ registry }}/wikimedia-buster:latest
1110
12- COPY --from=build /go/bin /php-fpm-exporter /usr/bin/prometheus-php-fpm-exporter
11+ COPY --from=build /go/php-fpm-exporter /php-fpm-exporter.linux.amd64 /usr/bin/prometheus-php-fpm-exporter
1312
1413USER {{ "nobody" | uid }}
1514ENTRYPOINT ["/usr/bin/prometheus-php-fpm-exporter"]
Original file line number Diff line number Diff line change 1+ prometheus-php-fpm-exporter (0.0.3) wikimedia; urgency=high
2+
3+ * Use upstream build script
4+ * Switch to olivierbeytrison's fork that fixes build process
5+ * Update to bullseye
6+
7+ -- Clément Goubert <Clément Goubert <
[email protected] >> Mon, 11 Dec 2023 14:34:04 +0100
8+
19prometheus-php-fpm-exporter (0.0.2-20231210) wikimedia; urgency=medium
210
311 * Weekly rebuild.
Original file line number Diff line number Diff line change 11Package: prometheus-php-fpm-exporter
22Description: php-fpm prometheus exporter
33Maintainer: Giuseppe Lavagetto <
[email protected] >
4+ Build-Depends: golang1.15
You can’t perform that action at this time.
0 commit comments