aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Buchholz Göktürk <tomalok@gmail.com>2021-07-22 02:23:42 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2021-07-24 14:21:58 +0000
commitcc438f628cb43544abc39f6214b8b76458aa614a (patch)
treeb753e19041cfde78cfb50daa1304c034777d6c29
parent4db0abe3cd989293970d8e1e5a728e649a599fc3 (diff)
downloadaports-cc438f628cb43544abc39f6214b8b76458aa614a.tar.gz
aports-cc438f628cb43544abc39f6214b8b76458aa614a.tar.bz2
aports-cc438f628cb43544abc39f6214b8b76458aa614a.tar.xz
testing/docker-cli-compose: new abuild
-rw-r--r--testing/docker-cli-compose/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/docker-cli-compose/APKBUILD b/testing/docker-cli-compose/APKBUILD
new file mode 100644
index 0000000000..2a167d9b39
--- /dev/null
+++ b/testing/docker-cli-compose/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
+# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>
+pkgname=docker-cli-compose
+pkgver=2.0.0_beta6
+_ver=2.0.0-beta.6
+pkgrel=0
+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="compose-cli-$_ver.tar.gz::https://github.com/docker/compose-cli/archive/v$_ver.tar.gz"
+
+_plugin_installdir="/usr/libexec/docker/cli-plugins"
+
+builddir="$srcdir"/compose-cli-"$_ver"
+
+export GOPATH=$srcdir/go
+export GOCACHE=$srcdir/go-build
+export GOTMPDIR=$srcdir
+
+build() {
+ PKG=github.com/docker/compose-cli
+ local ldflags="-s -w -X $PKG/internal.Version=v$_ver"
+ go build -modcacherw -ldflags "$ldflags" -o docker-compose ./cmd
+}
+
+check() {
+ # e2e tests are excluded because they depend on live dockerd/kubernetes/ecs
+ local pkgs="$(go list -modcacherw ./... | grep -Ev '/e2e(/|$)')"
+ go test -modcacherw -short $pkgs
+ ./docker-compose compose version
+}
+
+package() {
+ install -Dm755 docker-compose "$pkgdir$_plugin_installdir"/docker-compose
+}
+
+sha512sums="
+2bf39813797ac58f1b29b329ee396ca6c52fb6cafa2a53b60ca6a1275947c3c663903af4a1a7e20339bab2ae76e847f63071d879e8549a51ea68c50ff2dbb0eb compose-cli-2.0.0-beta.6.tar.gz
+"