Skip to content

Commit

Permalink
chore: add rock for prometheus-pushgateway v1.8.0 (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <github-actions@github.com>
  • Loading branch information
github-actions[bot] and Github Actions authored May 28, 2024
1 parent 54c7975 commit 41d3306
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions 1.8.0/rockcraft.yaml
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

0 comments on commit 41d3306

Please sign in to comment.