2016-07-24 23:10:28 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# docker-engine
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-03-12 23:48:33 +01:00
|
|
|
DOCKER_ENGINE_VERSION = 20.10.5
|
2020-10-19 11:08:25 +02:00
|
|
|
DOCKER_ENGINE_SITE = $(call github,moby,moby,v$(DOCKER_ENGINE_VERSION))
|
2016-07-24 23:10:28 +02:00
|
|
|
|
|
|
|
DOCKER_ENGINE_LICENSE = Apache-2.0
|
|
|
|
DOCKER_ENGINE_LICENSE_FILES = LICENSE
|
|
|
|
|
2018-11-27 09:56:55 +01:00
|
|
|
DOCKER_ENGINE_DEPENDENCIES = host-pkgconf
|
2020-08-29 11:40:58 +02:00
|
|
|
DOCKER_ENGINE_GOMOD = github.com/docker/docker
|
2016-07-24 23:10:28 +02:00
|
|
|
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_LDFLAGS = \
|
2020-12-16 09:00:12 +01:00
|
|
|
-X $(DOCKER_ENGINE_GOMOD)/dockerversion.BuildTime="" \
|
|
|
|
-X $(DOCKER_ENGINE_GOMOD)/dockerversion.GitCommit="buildroot" \
|
|
|
|
-X $(DOCKER_ENGINE_GOMOD)/dockerversion.IAmStatic="false" \
|
|
|
|
-X $(DOCKER_ENGINE_GOMOD)/dockerversion.InitCommitID="" \
|
|
|
|
-X $(DOCKER_ENGINE_GOMOD)/dockerversion.Version="$(DOCKER_ENGINE_VERSION)"
|
2016-07-24 23:10:28 +02:00
|
|
|
|
2020-12-16 09:00:12 +01:00
|
|
|
DOCKER_ENGINE_TAGS = cgo exclude_graphdriver_zfs
|
2018-11-27 09:56:55 +01:00
|
|
|
DOCKER_ENGINE_BUILD_TARGETS = cmd/dockerd
|
2016-07-24 23:10:28 +02:00
|
|
|
|
2020-12-28 17:05:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
|
|
|
|
DOCKER_ENGINE_DEPENDENCIES += libapparmor
|
|
|
|
DOCKER_ENGINE_TAGS += apparmor
|
|
|
|
endif
|
|
|
|
|
2016-07-24 23:10:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_TAGS += seccomp
|
2016-07-24 23:10:28 +02:00
|
|
|
DOCKER_ENGINE_DEPENDENCIES += libseccomp
|
|
|
|
endif
|
|
|
|
|
2017-05-30 05:50:04 +02:00
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
|
DOCKER_ENGINE_DEPENDENCIES += systemd
|
2018-11-27 09:56:55 +01:00
|
|
|
DOCKER_ENGINE_TAGS += systemd journald
|
2017-05-30 05:50:04 +02:00
|
|
|
endif
|
2016-07-24 23:10:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_EXPERIMENTAL),y)
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_TAGS += experimental
|
2016-07-24 23:10:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS),y)
|
|
|
|
DOCKER_ENGINE_DEPENDENCIES += btrfs-progs
|
|
|
|
else
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_TAGS += exclude_graphdriver_btrfs
|
2016-07-24 23:10:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER),y)
|
|
|
|
DOCKER_ENGINE_DEPENDENCIES += lvm2
|
|
|
|
else
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_TAGS += exclude_graphdriver_devicemapper
|
2016-07-24 23:10:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS),y)
|
|
|
|
DOCKER_ENGINE_DEPENDENCIES += gvfs
|
|
|
|
else
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_TAGS += exclude_graphdriver_vfs
|
2016-07-24 23:10:28 +02:00
|
|
|
endif
|
|
|
|
|
2018-03-07 23:19:38 +01:00
|
|
|
DOCKER_ENGINE_INSTALL_BINS = $(notdir $(DOCKER_ENGINE_BUILD_TARGETS))
|
|
|
|
|
2016-07-24 23:10:28 +02:00
|
|
|
define DOCKER_ENGINE_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/docker.service
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.socket \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/docker.socket
|
|
|
|
endef
|
|
|
|
|
2019-01-30 23:28:09 +01:00
|
|
|
define DOCKER_ENGINE_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/docker-engine/S60dockerd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S60dockerd
|
|
|
|
endef
|
|
|
|
|
2016-07-24 23:10:28 +02:00
|
|
|
define DOCKER_ENGINE_USERS
|
|
|
|
- - docker -1 * - - - Docker Application Container Framework
|
|
|
|
endef
|
|
|
|
|
2020-06-21 09:59:56 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS),y)
|
|
|
|
define DOCKER_ENGINE_DRIVER_BTRFS_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_BTRFS_FS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_BTRFS_FS_POSIX_ACL)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER),y)
|
|
|
|
define DOCKER_ENGINE_DRIVER_DM_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MD)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_DM)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MD_THIN_PROVISIONING)
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
# based on contrib/check-config.sh
|
|
|
|
define DOCKER_ENGINE_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_POSIX_MQUEUE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MEMCG)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_SCHED)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_FREEZER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CPUSETS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_DEVICE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_CPUACCT)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NAMESPACES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_UTS_NS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IPC_NS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_PID_NS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_NS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_BRIDGE_NETFILTER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XTABLES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_CONNTRACK)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_IPVS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_IPTABLES)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_FILTER)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_NAT)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_TARGET_MASQUERADE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_BRIDGE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_CORE)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_DUMMY)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_MACVLAN)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IPVLAN)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_VXLAN)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_VETH)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_OVERLAY_FS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_KEYS)
|
|
|
|
$(DOCKER_ENGINE_DRIVER_BTRFS_LINUX_CONFIG_FIXUPS)
|
|
|
|
$(DOCKER_ENGINE_DRIVER_DM_LINUX_CONFIG_FIXUPS)
|
|
|
|
endef
|
|
|
|
|
2018-03-07 23:19:38 +01:00
|
|
|
$(eval $(golang-package))
|