File tree 2 files changed +29
-0
lines changed
scripts/download-official-binaries
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1
1
addons /images /bin
2
2
scripts /cross-compile-k8s /bin
3
+ scripts /download-official-binaries /bin
Original file line number Diff line number Diff line change
1
+ ARCH? =arm
2
+ OUTPUT? =$(shell pwd) /bin/$(ARCH )
3
+ TMPDIR: =$(shell mktemp -d)
4
+
5
+ ETCD_VERSION = 2.2.5
6
+ FLANNEL_VERSION = 0.5.5
7
+ K8S_VERSION = v1.3.0
8
+
9
+ all : compress
10
+ compress : etcd flanneld kube
11
+ cd $(TMPDIR ) /bin && tar -czf $(OUTPUT ) /kube-$(K8S_VERSION ) -$(ARCH ) .tar.gz .
12
+
13
+ etcd : dirs
14
+ docker export $(shell docker create gcr.io/google_containers/etcd-$(ARCH ) :2.2.5) | tar -x -C $(TMPDIR ) /etcd
15
+ cp $(TMPDIR ) /etcd/usr/local/bin/etcd $(TMPDIR ) /etcd/usr/local/bin/etcdctl $(TMPDIR ) /bin/
16
+
17
+ flanneld : dirs
18
+ docker export $(shell docker create gcr.io/google_containers/flannel-$(ARCH ) :0.5.5) | tar -x -C $(TMPDIR ) /flannel
19
+ cp $(TMPDIR ) /flannel/opt/bin/flanneld $(TMPDIR ) /bin/
20
+
21
+ kube : dirs
22
+ curl -sSL https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION ) /bin/linux/$(ARCH ) /kubectl > $(TMPDIR ) /bin/kubectl
23
+ curl -sSL https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION ) /bin/linux/$(ARCH ) /hyperkube > $(TMPDIR ) /bin/hyperkube
24
+ curl -sSL https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION ) /bin/linux/$(ARCH ) /e2e.test > $(TMPDIR ) /bin/e2e.test
25
+ curl -sSL https://storage.googleapis.com/kubernetes-release/release/$(K8S_VERSION ) /bin/linux/$(ARCH ) /e2e_node.test > $(TMPDIR ) /bin/e2e_node.test
26
+
27
+ dirs :
28
+ mkdir -p $(TMPDIR ) /flannel $(TMPDIR ) /etcd $(TMPDIR ) /bin $(OUTPUT )
You can’t perform that action at this time.
0 commit comments