Add pkgcheck recipe.

This commit is contained in:
tastytea 2020-05-05 22:42:33 +02:00
parent 413965ddd3
commit 126649aa32
1 changed files with 41 additions and 0 deletions

41
pkgcheck.Dockerfile Normal file
View File

@ -0,0 +1,41 @@
# Portage tree.
FROM gentoo/portage:latest as portage
# Minimal Gentoo image without build dependencies.
FROM tastytea/gentoo-base:latest as gentoo-base
# Build packages in /workdir.
FROM gentoo/stage3-amd64:latest as build
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
COPY --from=gentoo-base / /workdir
RUN cp /workdir/etc/portage/make.conf /etc/portage/make.conf
ENV USE "-curl -webdav"
RUN eselect profile set default/linux/amd64/17.1
RUN mkdir -p /etc/portage/package.accept_keywords
RUN echo -e 'dev-util/pkgcheck\n sys-apps/pkgcore' >> \
/etc/portage/package.accept_keywords/portage
RUN quickpkg --include-config=y @world sys-libs/glibc
RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet \
dev-util/pkgcheck sys-devel/gcc
RUN emerge --root=/workdir --rage-clean --quiet \
app-arch/tar \
app-arch/xz-utils \
dev-libs/openssl \
net-dns/libidn2 \
net-misc/rsync \
sys-apps/file \
sys-apps/sed \
dev-lang/perl \
sys-libs/timezone-data \
app-misc/ca-certificates
RUN rm -r /workdir/usr/share/gtk-doc
RUN rm -r /workdir/usr/include
RUN rm -r /workdir/var/db/pkg
# Final image.
FROM gentoo/portage:latest
LABEL maintainer="tastytea+docker@tastytea.de"
LABEL description="Latest ~amd64 dev-util/pkgcheck."
COPY --from=build /workdir /
RUN eselect profile set default/linux/amd64/17.1
ENV LANG "en_DK.utf8"