-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'cadvisor-bin/' from commit '28fb16eaead0b3bc5cf48377c4c2503d1d25…
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CADVISOR_ARGS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |