diff options
author | Gerard Ryan <G.M0N3Y.2503@gmail.com> | 2020-11-08 12:24:23 +1000 |
---|---|---|
committer | Daniel Golle <dangowrt@users.noreply.github.com> | 2020-12-15 12:52:33 +0000 |
commit | 404b917183840dfdb3791d612ea28de347d451c6 (patch) | |
tree | cb1948db155dfbd62c4f76ec6f01b9e9fd655aef /utils/docker | |
parent | 84f084ebfec23cc581fe5daef71d4ec56e5ddbbc (diff) |
docker: Split from dockerd and update to v20.10.0
Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
Diffstat (limited to 'utils/docker')
-rw-r--r-- | utils/docker/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/utils/docker/Makefile b/utils/docker/Makefile new file mode 100644 index 000000000..6fdf851bd --- /dev/null +++ b/utils/docker/Makefile @@ -0,0 +1,53 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=docker +PKG_VERSION:=20.10.0 +PKG_RELEASE:=1 +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/docker/cli/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=5a52391fbabb0d105b2d0ed4ada762fcf24f6a80c772a9990a86af77e5dd5f10 +PKG_SOURCE_VERSION:=03fa4b8bc6 # SHA1 used within the docker executable + +PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com> + +PKG_BUILD_DEPENDS:=golang/host +PKG_BUILD_PARALLEL:=1 + +GO_PKG:=github.com/docker/cli + +include $(INCLUDE_DIR)/package.mk +include ../../lang/golang/golang-package.mk + +define Package/docker + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Docker Community Edition CLI + URL:=https://www.docker.com/ + DEPENDS:=$(GO_ARCH_DEPENDS) @(aarch64||arm||x86_64) +endef + +define Package/docker/description +The CLI used in the Docker CE and Docker EE products. +endef + +TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS) +TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) + +define Build/Compile + ( \ + cd $(PKG_BUILD_DIR); \ + $(GO_PKG_VARS) \ + GITCOMMIT=$(PKG_SOURCE_VERSION) \ + VERSION=$(PKG_VERSION) \ + ./scripts/build/binary; \ + ) +endef + +define Package/docker/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/docker $(1)/usr/bin/ +endef +$(eval $(call BuildPackage,docker)) |