diff options
author | Nic Boet <nic@boet.cc> | 2022-12-04 18:55:50 -0600 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-05 02:29:00 +0000 |
commit | e6d4a7b7e3156209bb838139a5b84e6a026440f1 (patch) | |
tree | bae9d6c78b529cdf64e46b92b9fa75a894f3a44f /app-containers/docker-buildx | |
parent | dev-util/lxqt-build-tools: Stabilize 0.12.0 x86, #884385 (diff) | |
download | gentoo-e6d4a7b7e3156209bb838139a5b84e6a026440f1.tar.gz gentoo-e6d4a7b7e3156209bb838139a5b84e6a026440f1.tar.bz2 gentoo-e6d4a7b7e3156209bb838139a5b84e6a026440f1.zip |
app-containers/docker-buildx: new package
Today, Gentoo's offical docker-images depends on GitHub actions
and Ubuntu image to build our release media. By adding this new
docker "buildx" ebuild, building Gentoo docker images locally
on Gentoo hosts becomes possible.
Addtionally, Bug 873589 reports "buildx" not found.
Bug: https://bugs.gentoo.org/873589
Closes: https://github.com/gentoo/gentoo/pull/28543
Signed-off-by: Nic Boet <nic@boet.cc>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-containers/docker-buildx')
-rw-r--r-- | app-containers/docker-buildx/Manifest | 1 | ||||
-rw-r--r-- | app-containers/docker-buildx/docker-buildx-0.9.1.ebuild | 42 | ||||
-rw-r--r-- | app-containers/docker-buildx/metadata.xml | 19 |
3 files changed, 62 insertions, 0 deletions
diff --git a/app-containers/docker-buildx/Manifest b/app-containers/docker-buildx/Manifest new file mode 100644 index 000000000000..4dd392c88801 --- /dev/null +++ b/app-containers/docker-buildx/Manifest @@ -0,0 +1 @@ +DIST docker-buildx-0.9.1.tar.gz 8705505 BLAKE2B 75a56b1edda71fd1e0b4312e72695efd67e6e5144e064cc27ae1729e3155d8a605b315fdb6d32055fc9cb86151057f5afd57eaea9a5f4aaa6ac4ecc52a6a5161 SHA512 1d672ae9daa0f1c830fc56c2c3638389312a87c645aed97f4a0ee56eaef936ab833c04d11969a423e0d5ab5388f29db20d7a1fe6c9b0ec7d981123243b4eaa4b diff --git a/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild new file mode 100644 index 000000000000..e8a8a84e36f4 --- /dev/null +++ b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +MY_PN="buildx" +DESCRIPTION="Docker CLI plugin for extended build capabilities with BuildKit" +HOMEPAGE="https://github.com/docker/buildx" +SRC_URI="https://github.com/docker/buildx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND="app-containers/docker" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_compile() { + local _buildx_r='github.com/docker/buildx' + go build -mod=vendor -o docker-buildx \ + -ldflags "-linkmode=external \ + -X $_buildx_r/version.Version=${PV} \ + -X $_buildx_r/version.Revision=$(date -u +%FT%T%z) \ + -X $_buildx_r/version.Package=$_buildx_r" \ + ./cmd/buildx || die +} + +src_install() { + exeinto /usr/libexec/docker/cli-plugins + doexe docker-buildx + + dodoc README.md +} + +src_test() { + go test ./... || die +} diff --git a/app-containers/docker-buildx/metadata.xml b/app-containers/docker-buildx/metadata.xml new file mode 100644 index 000000000000..42cd3f472a0d --- /dev/null +++ b/app-containers/docker-buildx/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>nic@boet.cc</email> + <name>Nic Boet</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">docker/buildx</remote-id> + </upstream> + <longdescription lang="en"> + buildx is a Docker CLI plugin for extended build capabilities with BuildKit. + BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. + </longdescription> +</pkgmetadata> |