Add pkgcheck recipe.
This commit is contained in:
parent
413965ddd3
commit
126649aa32
41
pkgcheck.Dockerfile
Normal file
41
pkgcheck.Dockerfile
Normal 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"
|
Loading…
Reference in New Issue
Block a user