From a6fd2be8534c7f7599eec5baada40ce953dcd4ed Mon Sep 17 00:00:00 2001 From: Rene Hollander Date: Sat, 13 Aug 2022 14:14:32 +0200 Subject: [PATCH 1/2] Create the cAdvisor package. --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 26 ++++++++++++++++++++++++++ cadvisor.conf | 1 + cadvisor.service | 12 ++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 cadvisor.conf create mode 100644 cadvisor.service diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..d1edbd0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = cadvisor-bin + pkgdesc = Analyzes resource usage and performance characteristics of running containers. + pkgver = 0.45.0 + pkgrel = 1 + url = https://github.com/google/cadvisor + arch = x86_64 + license = Apache2 + backup = etc/conf.d/cadvisor + source = cadvisor-bin-0.45.0::https://github.com/google/cadvisor/releases/download/v0.45.0/cadvisor-v0.45.0-linux-amd64 + source = cadvisor.conf + source = cadvisor.service + sha256sums = 9a2a0b69f58d932855c0af23b847cb9de8f8c32264f66f9fb5dcc8f359f34ccd + sha256sums = SKIP + sha256sums = SKIP + +pkgname = cadvisor-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..32097f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Rene Hollander + +pkgname=cadvisor-bin +pkgver=0.45.0 +pkgrel=1 +pkgdesc="Analyzes resource usage and performance characteristics of running containers." +arch=("x86_64") +url="https://github.com/google/cadvisor" +license=("Apache2") + +backup=('etc/conf.d/cadvisor') + +source=("${pkgname}-${pkgver}::https://github.com/google/cadvisor/releases/download/v${pkgver}/cadvisor-v${pkgver}-linux-amd64" + cadvisor.conf + cadvisor.service) + +sha256sums=('9a2a0b69f58d932855c0af23b847cb9de8f8c32264f66f9fb5dcc8f359f34ccd' + 'SKIP' + 'SKIP') + +package() { + install -Dm644 cadvisor.conf "$pkgdir"/etc/conf.d/cadvisor + install -Dm644 cadvisor.service "$pkgdir"/usr/lib/systemd/system/cadvisor.service + + install -Dm755 "${pkgname}-${pkgver}" "$pkgdir"/usr/bin/cadvisor +} diff --git a/cadvisor.conf b/cadvisor.conf new file mode 100644 index 0000000..2713090 --- /dev/null +++ b/cadvisor.conf @@ -0,0 +1 @@ +CADVISOR_ARGS="" diff --git a/cadvisor.service b/cadvisor.service new file mode 100644 index 0000000..ad844a3 --- /dev/null +++ b/cadvisor.service @@ -0,0 +1,12 @@ +[Unit] +Description=cAdvisor +Documentation=https://github.com/google/cadvisor +After=docker.service containerd.service + +[Service] +Restart=on-failure +EnvironmentFile=-/etc/conf.d/cadvisor +ExecStart=/usr/bin/cadvisor ${CADVISOR_ARGS} + +[Install] +WantedBy=multi-user.target From 28fb16eaead0b3bc5cf48377c4c2503d1d25ec52 Mon Sep 17 00:00:00 2001 From: Rene Hollander Date: Sun, 22 Jan 2023 19:20:20 +0100 Subject: [PATCH 2/2] Bump to v0.47.0 --- .SRCINFO | 6 +++--- PKGBUILD | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index d1edbd0..61deb1f 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = cadvisor-bin pkgdesc = Analyzes resource usage and performance characteristics of running containers. - pkgver = 0.45.0 + pkgver = 0.47.0 pkgrel = 1 url = https://github.com/google/cadvisor arch = x86_64 license = Apache2 backup = etc/conf.d/cadvisor - source = cadvisor-bin-0.45.0::https://github.com/google/cadvisor/releases/download/v0.45.0/cadvisor-v0.45.0-linux-amd64 + source = cadvisor-bin-0.47.0::https://github.com/google/cadvisor/releases/download/v0.47.0/cadvisor-v0.47.0-linux-amd64 source = cadvisor.conf source = cadvisor.service - sha256sums = 9a2a0b69f58d932855c0af23b847cb9de8f8c32264f66f9fb5dcc8f359f34ccd + sha256sums = caf4491298e0702f9d0c6a1d1949767f5c6400f77e12cd3524d6d3fcc66abc2a sha256sums = SKIP sha256sums = SKIP diff --git a/PKGBUILD b/PKGBUILD index 32097f4..fc67f97 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Rene Hollander pkgname=cadvisor-bin -pkgver=0.45.0 +pkgver=0.47.0 pkgrel=1 pkgdesc="Analyzes resource usage and performance characteristics of running containers." arch=("x86_64") @@ -14,7 +14,7 @@ source=("${pkgname}-${pkgver}::https://github.com/google/cadvisor/releases/downl cadvisor.conf cadvisor.service) -sha256sums=('9a2a0b69f58d932855c0af23b847cb9de8f8c32264f66f9fb5dcc8f359f34ccd' +sha256sums=('caf4491298e0702f9d0c6a1d1949767f5c6400f77e12cd3524d6d3fcc66abc2a' 'SKIP' 'SKIP')