Skip to content

Instantly share code, notes, and snippets.

@leomao
Created March 14, 2017 02:24
Show Gist options
  • Save leomao/a07038cb6a40ee38af7439318d441d66 to your computer and use it in GitHub Desktop.
Save leomao/a07038cb6a40ee38af7439318d441d66 to your computer and use it in GitHub Desktop.
Cadivsor PKGBUILD
[Unit]
Description=Google Cadvisor
Documentation=https://github.com/google/cadvisor#cadvisor
After=local-fs.target network.target
Wants=docker.service
[Service]
PermissionsStartOnly=true
Restart=on-failure
RestartSec=1
TimeoutStartSec=0
TimeoutStopSec=20
ExecStart=/usr/bin/cadvisor -logtostderr -listen_ip 127.0.0.1
[Install]
WantedBy=multi-user.target
pkgname=cadvisor
pkgver=0.25.0
pkgrel=1
pkgdesc="Analyzes resource usage and performance characteristics of running containers"
license=('Apache')
arch=('x86_64')
url='https://github.com/google/cadvisor'
makedepends=()
optdepends=()
source_x86_64=(
"https://github.com/google/cadvisor/releases/download/v${pkgver}/cadvisor"
"cadvisor.service")
md5sums_x86_64=('7b52fdc712a1f92a9e79d18ed87739c7'
'43859dce51f0a1a296b49531fbb1d775')
package() {
cd $srcdir
install -D -m755 cadvisor "$pkgdir/usr/bin/cadvisor"
install -D -m644 cadvisor.service "$pkgdir/usr/lib/systemd/system/cadvisor.service"
}
# vim: set ft=sh syn=sh ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment