-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add rock for prometheus-pushgateway v1.8.0 (#17)
Co-authored-by: Github Actions <github-actions@github.com>
- Loading branch information
1 parent
54c7975
commit 41d3306
Showing
1 changed file
with
45 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,45 @@ | ||
name: prometheus-pushgateway | ||
title: Prometheus Pushgateway | ||
summary: Prometheus PushGateway in a rock. | ||
description: "The Prometheus Pushgateway exists to allow ephemeral and batch jobs to expose their metrics to Prometheus." | ||
version: "1.8.0" | ||
base: ubuntu@22.04 | ||
build-base: ubuntu@22.04 | ||
license: Apache-2.0 | ||
services: | ||
prometheus-pushgateway: | ||
command: /bin/pushgateway | ||
override: replace | ||
startup: enabled | ||
platforms: | ||
amd64: | ||
parts: | ||
prometheus-pushgateway: | ||
plugin: go | ||
source: https://github.com/prometheus/pushgateway | ||
source-type: git | ||
source-tag: "v1.8.0" | ||
build-snaps: | ||
- go/1.21/stable | ||
build-packages: | ||
- make | ||
override-build: | | ||
make build | ||
install -D -m755 pushgateway ${CRAFT_PART_INSTALL}/bin/pushgateway | ||
organize: | ||
prometheus-pushgateway: bin/pushgateway | ||
stage: | ||
- bin/pushgateway | ||
# We moved this here because: https://github.com/canonical/rockcraft/issues/343 | ||
ca-certs: | ||
plugin: nil | ||
overlay-packages: [ca-certificates] | ||
deb-security-manifest: | ||
plugin: nil | ||
after: | ||
- prometheus-pushgateway | ||
- ca-certs | ||
override-prime: | | ||
set -x | ||
mkdir -p $CRAFT_PRIME/usr/share/rocks/ | ||
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query --admindir=$CRAFT_PRIME/var/lib/dpkg/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > $CRAFT_PRIME/usr/share/rocks/dpkg.query |