Skip to content

Commit

Permalink
Add 'cadvisor-bin/' from commit '28fb16eaead0b3bc5cf48377c4c2503d1d25…
Browse files Browse the repository at this point in the history
…ec52'

git-subtree-dir: cadvisor-bin
git-subtree-mainline: 286545e
git-subtree-split: 28fb16e
  • Loading branch information
aminvakil committed Dec 12, 2024
2 parents 286545e + 28fb16e commit 769dd2d
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cadvisor-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pkgbase = cadvisor-bin
pkgdesc = Analyzes resource usage and performance characteristics of running containers.
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.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 = caf4491298e0702f9d0c6a1d1949767f5c6400f77e12cd3524d6d3fcc66abc2a
sha256sums = SKIP
sha256sums = SKIP

pkgname = cadvisor-bin
26 changes: 26 additions & 0 deletions cadvisor-bin/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Rene Hollander <[email protected]>

pkgname=cadvisor-bin
pkgver=0.47.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=('caf4491298e0702f9d0c6a1d1949767f5c6400f77e12cd3524d6d3fcc66abc2a'
'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
}
1 change: 1 addition & 0 deletions cadvisor-bin/cadvisor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CADVISOR_ARGS=""
12 changes: 12 additions & 0 deletions cadvisor-bin/cadvisor.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 769dd2d

Please sign in to comment.