Files
openwrt-packages/utils/docker-compose/Makefile
Javier Marcet 32d87ae946 docker-compose: Update to version 2.5.1
What's Changed:

 - Fix relative paths on envfile label by @ulyssessouza
 - down: Reject all arguments by @Jille
 - Clarify what default work dir is when multiple compose files by
 @quite
 - compose down exit=0 if nothing to remove by @ndeloof
 - cp command: copy to all containers of a service as default
 behaviour by @glours
 - Fix extra space printed with --no-log-prefix option by @jan4843
 - bump compose-go to 1.2.5 by @ndeloof

New Contributors:

 - @Jille made their first contribution
 - @quite made their first contribution
 - @jan4843 made their first contribution

Signed-off-by: Javier Marcet <javier@marcet.info>
2022-05-25 17:01:43 -07:00

48 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=compose
PKG_VERSION:=2.5.1
PKG_RELEASE:=$(AUTORELEASE)
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE:=v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/docker/compose/tar.gz/v${PKG_VERSION}?
PKG_HASH:=f3eeaac99d2467fe482f499787ae38f66738bc0641dbf34a6045f34aaab893b7
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/docker/compose/v2
GO_PKG_BUILD_PKG:=github.com/docker/compose/v2/cmd
GO_PKG_LDFLAGS_X:=github.com/docker/compose/v2/internal.Version=v$(PKG_VERSION)
GO_PKG_TAGS:=e2e,kube
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/docker-compose
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Docker Compose
URL:=https://github.com/docker/compose
DEPENDS:=$(GO_ARCH_DEPENDS) +docker
endef
define Package/docker-compose/description
Multi-container orchestration for Docker
endef
define Package/docker-compose/install
$(INSTALL_DIR) $(1)/usr/lib/docker/cli-plugins/
$(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/cmd $(1)/usr/lib/docker/cli-plugins/docker-compose
$(INSTALL_DIR) $(1)/usr/bin/
$(LN) ../lib/docker/cli-plugins/docker-compose $(1)/usr/bin/docker-compose
endef
$(eval $(call GoBinPackage,docker-compose))
$(eval $(call BuildPackage,docker-compose))