aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kubernetes/APKBUILD
blob: cc20ba13a02f02b7028df36638f2625ff2166448 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Mateusz MikuĊ‚a <matti@marinelayer.io>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=kubernetes
pkgver=1.11.2
pkgrel=0
pkgdesc="Container Cluster Manager for Docker"
url="http://kubernetes.io/"
arch="x86_64"
license="Apache"
options="!check"
depends="bash"
makedepends="bash coreutils findutils go linux-headers rsync grep"
source="$pkgname-$pkgver.tar.gz::https://dl.k8s.io/v$pkgver/kubernetes-src.tar.gz
	make-e2e_node-run-over-distro-bins.patch
	make-test-cmd-run-over-hyperkube-based-kubectl.patch
	fix-support-for-ppc64le.patch
	remove-apiserver-add-kube-prefix-for-hyperkube.patch
	"
builddir="$srcdir"/build

unpack() {
	mkdir -p $builddir
	tar -xf $srcdir/$pkgname-$pkgver.tar.gz -C $builddir
}

build() {
	cd "$builddir"
	make -j1
}

package() {
	cd "$builddir"
	binaries="kube-proxy
			kube-apiserver
			kube-controller-manager
			kubelet
			kubeadm
			hyperkube
			kube-aggregator
			kube-scheduler
			kubectl"
	for bin in $binaries; do
		install -Dm755 _output/local/bin/linux/amd64/$bin "$pkgdir"/usr/bin/$bin
	done
	install -d $pkgdir/var/lib/kubelet
}

sha512sums="774410a5cebe99dc701350791dd1b213c1d5a9b3e176b6188aedcb5427d105309f69cbc5b9a318240a3108015e67ee1a443015ad436b4145d55fa43715bafbc3  kubernetes-1.11.2.tar.gz
06e3e8626b70077eb693da9c53dca3bc566aea4590a27c5dd3997b6d34abec5bf5d749b7be94b60b83361884c29b3a6dbb56c40b18c008b19e7cbd6e0d5c87e6  make-e2e_node-run-over-distro-bins.patch
cf6d9a5e873603462f0b8de60d3c72b10cbe68175f621f814cb5a85c11cb18f408639181227dfae6718671109cd198ef8720ee15a7d4132bba691bbd7224860f  make-test-cmd-run-over-hyperkube-based-kubectl.patch
ff043b723edc644a8270a471bfb45b400a4547a9dd70b28c5c27dc041d956da2d1da36422694b35ac589a7ca651de44c7346d3d63fd36ec570bab7325a6fd73b  fix-support-for-ppc64le.patch
f60cb7006b85cac00b0f18f87cc9196541e359a82ba37b3e0938d5e9a6e178ef964df0695fff3135d4a6cc4f4d91e963bd184e3af140c7c1072735890ff4351d  remove-apiserver-add-kube-prefix-for-hyperkube.patch"