1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/docker-cli-compose/APKBUILD
2023-02-15 18:49:40 +01:00

49 lines
1.4 KiB
Text

# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>
pkgname=docker-cli-compose
pkgver=2.16.0
pkgrel=1
pkgdesc="A Docker CLI plugin for extended build capabilities"
url="https://docs.docker.com/compose/cli-command"
arch="all"
license="Apache-2.0"
depends="docker-cli"
makedepends="go"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/docker/compose/archive/v$pkgver.tar.gz"
# secfixes:
# 2.15.1-r0:
# - CVE-2022-27664
# - CVE-2022-32149
# 2.12.1-r0:
# - CVE-2022-39253
_plugin_installdir="/usr/libexec/docker/cli-plugins"
builddir="$srcdir"/compose-"$pkgver"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
PKG=github.com/docker/compose/v2
local ldflags="-X '$PKG/internal.Version=v$pkgver'"
go build -ldflags="$ldflags" -o docker-compose ./cmd
}
check() {
# e2e tests are excluded because they depend on live dockerd/kubernetes/ecs
local pkgs="$(go list ./... | grep -Ev '/(watch|e2e)(/|$)')"
go test -short $pkgs
./docker-compose compose version
}
package() {
install -Dm755 docker-compose -t "$pkgdir$_plugin_installdir"/
}
sha512sums="
2158c829de298529e3192cb8e201c554f89fa7554a81eae858470db30b41d03925aa4dce9ef6d22c295625abf67ab181f851f05818dc76e2a5d6c46554d5ca3f docker-cli-compose-2.16.0.tar.gz
"