aports/community/docker-cli-compose/APKBUILD
2023-05-02 19:27:34 +02:00

50 lines
1.4 KiB
Plaintext

# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>
pkgname=docker-cli-compose
pkgver=2.17.3
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="
a8ee444f742d22db0179de3c9dd0d78eca31c0c746923f076789c83463ae05f1b846523897683d0faae2d74bd1e3529e1e3c9952849aadfd2350c29c4398e637 docker-cli-compose-2.17.3.tar.gz
"