2016-07-05 00:30:32 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# docker-containerd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-10 06:00:49 +02:00
|
|
|
DOCKER_CONTAINERD_VERSION = 9048e5e50717ea4497b757314bad98ea3763c145
|
2016-07-05 00:30:32 +02:00
|
|
|
DOCKER_CONTAINERD_SITE = $(call github,docker,containerd,$(DOCKER_CONTAINERD_VERSION))
|
|
|
|
DOCKER_CONTAINERD_LICENSE = Apache-2.0
|
|
|
|
DOCKER_CONTAINERD_LICENSE_FILES = LICENSE.code
|
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_WORKSPACE = vendor
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_LDFLAGS = \
|
2016-07-24 16:43:45 +02:00
|
|
|
-X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION)
|
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_BUILD_TARGETS = ctr containerd containerd-shim
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_INSTALL_BINS = containerd containerd-shim
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
define DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
2016-07-05 00:30:32 +02:00
|
|
|
ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc
|
|
|
|
ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim
|
2018-06-07 09:51:07 +02:00
|
|
|
ln -fs containerd $(TARGET_DIR)/usr/bin/docker-containerd
|
2016-07-05 00:30:32 +02:00
|
|
|
endef
|
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_POST_INSTALL_TARGET_HOOKS += DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
|
|
|
|
|
|
|
$(eval $(golang-package))
|