Skip to content

Commit

Permalink
Add cri-tools to minikube.iso, for crictl
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Jan 8, 2018
1 parent fc9fe5f commit f16006c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu "System tools"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/runc-master/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/kpod/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crio-bin/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cri-tools/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/automount/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/docker-bin/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cni-bin/Config.in"
Expand Down
5 changes: 5 additions & 0 deletions deploy/iso/minikube-iso/package/cri-tools/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config BR2_PACKAGE_CRI_TOOLS
bool "cri-tools"
default y
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/package/cri-tools/cri-tools.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sha256 e83b5a8ff6fc2c98c3463600e74a86d7dbbea6330f883cd5663cbd59641a8086 v0.2.tar.gz
28 changes: 28 additions & 0 deletions deploy/iso/minikube-iso/package/cri-tools/cri-tools.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
################################################################################
#
# cri-tools
#
################################################################################

CRI_TOOLS_VERSION = v0.2
CRI_TOOLS_SITE = https://github.com/kubernetes-incubator/cri-tools/archive
CRI_TOOLS_SOURCE = $(CRI_TOOLS_VERSION).tar.gz
CRI_TOOLS_LICENSE = Apache-2.0
CRI_TOOLS_LICENSE_FILES = LICENSE
CRI_TOOLS_DEPENDENCIES =
CRI_TOOLS_GOPATH = $(@D)/_output
CRI_TOOLS_ENV = \
CGO_ENABLED=1 \
GOPATH="$(CRI_TOOLS_GOPATH)" \
PATH=$(CRI_TOOLS_GOPATH)/bin:$(BR_PATH)


define CRI_TOOLS_BUILD_CMDS
$(CRI_TOOLS_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef

define CRI_TOOLS_INSTALL_TARGET_CMDS
$(CRI_TOOLS_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BINDIR=$(TARGET_DIR)/usr/bin install
endef

$(eval $(generic-package))

0 comments on commit f16006c

Please sign in to comment.