Skip to content

Commit

Permalink
add security manifest (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Dec 8, 2023
1 parent 955c911 commit 69c7f2f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
13 changes: 11 additions & 2 deletions 1.6.0/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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.6.0"
base: ubuntu:22.04
build-base: ubuntu:22.04
base: ubuntu@22.04
build-base: ubuntu@22.04
license: Apache-2.0
services:
prometheus-pushgateway:
Expand Down Expand Up @@ -32,3 +32,12 @@ parts:
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
13 changes: 11 additions & 2 deletions 1.6.1/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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.6.1"
base: ubuntu:22.04
build-base: ubuntu:22.04
base: ubuntu@22.04
build-base: ubuntu@22.04
license: Apache-2.0
services:
prometheus-pushgateway:
Expand Down Expand Up @@ -32,3 +32,12 @@ parts:
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
13 changes: 11 additions & 2 deletions 1.6.2/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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.6.2"
base: ubuntu:22.04
build-base: ubuntu:22.04
base: ubuntu@22.04
build-base: ubuntu@22.04
license: Apache-2.0
services:
prometheus-pushgateway:
Expand Down Expand Up @@ -32,3 +32,12 @@ parts:
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

0 comments on commit 69c7f2f

Please sign in to comment.