Merge ~athos-ribeiro/ubuntu-docker-images/+git/prometheus:2.20-20.04-deb-manifest into ~ubuntu-docker-images/ubuntu-docker-images/+git/prometheus:2.20-20.04

Proposed by Athos Ribeiro
Status: Merged
Merged at revision: 0b37aec4321ce3a827d8559f8894ab6ec06a218f
Proposed branch: ~athos-ribeiro/ubuntu-docker-images/+git/prometheus:2.20-20.04-deb-manifest
Merge into: ~ubuntu-docker-images/ubuntu-docker-images/+git/prometheus:2.20-20.04
Diff against target: 16 lines (+4/-1)
1 file modified
Dockerfile (+4/-1)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior Approve
Canonical Server Pending
Review via email: mp+413043@code.launchpad.net

Description of the change

Generate manifest to report installed deb packages

* https://bugs.launchpad.net/ubuntu-docker-images/+bug/1953697

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

LGTM.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/Dockerfile b/Dockerfile
2index 09c3c9c..cebab0e 100644
3--- a/Dockerfile
4+++ b/Dockerfile
5@@ -21,7 +21,10 @@ RUN set -eux; \
6 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
7 tzdata ca-certificates; \
8 rm -rf /var/lib/apt/lists/*; \
9- mkdir -p /prometheus
10+ mkdir -p /prometheus; \
11+ mkdir -p /usr/share/rocks; \
12+# create deb manifest
13+ (echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > /usr/share/rocks/dpkg.query
14
15 COPY --from=snap-installer /snap/prometheus/bin/prometheus /usr/bin/prometheus
16 COPY --from=snap-installer /snap/prometheus/bin/promtool /usr/bin/promtool

Subscribers

People subscribed via source and target branches