Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add ROCK for prometheus-pushgateway v1.7.0 #15

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions 1.7.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.7.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.7.0"
build-snaps:
- go/1.20/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
stage-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
Loading