Add packaging for cri-dockerd
Needed for docker, on versions without dockershim No releases and no binaries yet, so build from gitpull/13191/head
parent
89795d1946
commit
63f1f3cb14
|
@ -6,6 +6,7 @@ menu "System tools"
|
|||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crictl-bin/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/cri-dockerd/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cni/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cni-plugins/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/hyperv-daemons/Config.in"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
config BR2_PACKAGE_CRI_DOCKERD
|
||||
bool "cri-dockerd"
|
||||
default y
|
||||
depends on BR2_x86_64
|
||||
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_DOCKER_BIN
|
|
@ -0,0 +1 @@
|
|||
sha256 4acd7605a0cb95a6ad50314d1f2497b92ee0f07382062d0c18a5434c1a3b9513 542e27dee12db61d6e96d2a83a20359474a5efa2.tar.gz
|
|
@ -0,0 +1,44 @@
|
|||
################################################################################
|
||||
#
|
||||
# cri-dockerd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 0.2.0-dev
|
||||
CRI_DOCKERD_VERSION = 542e27dee12db61d6e96d2a83a20359474a5efa2
|
||||
CRI_DOCKERD_SITE = https://github.com/Mirantis/cri-dockerd/archive
|
||||
CRI_DOCKERD_SOURCE = $(CRI_DOCKERD_VERSION).tar.gz
|
||||
|
||||
CRI_DOCKERD_DEPENDENCIES = host-go
|
||||
|
||||
CRI_DOCKERD_GOPATH = $(@D)/_output
|
||||
CRI_DOCKERD_ENV = \
|
||||
$(GO_TARGET_ENV) \
|
||||
CGO_ENABLED=0 \
|
||||
GO111MODULE=on \
|
||||
GOPATH="$(CRI_DOCKERD_GOPATH)" \
|
||||
GOBIN="$(CRI_DOCKERD_GOPATH)/bin" \
|
||||
PATH=$(CRI_DOCKERD_GOPATH)/bin:$(BR_PATH)
|
||||
|
||||
CRI_DOCKERD_COMPILE_SRC = $(CRI_DOCKERD_GOPATH)/src/github.com/Mirantis/cri-dockerd
|
||||
|
||||
define CRI_DOCKERD_BUILD_CMDS
|
||||
$(CRI_DOCKERD_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) static-linux
|
||||
endef
|
||||
|
||||
define CRI_DOCKERD_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -Dm755 \
|
||||
$(@D)/packaging/static/build/linux/cri-dockerd/cri-dockerd \
|
||||
$(TARGET_DIR)/usr/bin/cri-dockerd
|
||||
endef
|
||||
|
||||
define CRI_DOCKERD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -Dm644 \
|
||||
$(@D)/packaging/systemd/cri-docker.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/cri-docker.service
|
||||
$(INSTALL) -Dm644 \
|
||||
$(@D)/packaging/systemd/cri-docker.socket \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/cri-docker.socket
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue