aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2021-06-17 12:32:40 +0200
committerAvatar Marvin Schmidt <marv@exherbo.org> 2021-09-17 10:37:27 +0200
commitdba44165b47d1263d15b5c03e9ac8ad9f433aa4a (patch)
treea79c4267f8e55cace431959924b26c17a02fe027 /ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
parent5e91129f891188bce2a266e5afc739d59b72e0fc (diff)
downloadpaludis-dba44165b47d1263d15b5c03e9ac8ad9f433aa4a.tar.gz
paludis-dba44165b47d1263d15b5c03e9ac8ad9f433aa4a.tar.xz
Revert "ci: Remove Gentoo for now"
There are up-to-date docker images again This reverts commit f957e62d2c52ef642ba7583a4ff25f572da59e56.
Diffstat (limited to 'ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile')
-rw-r--r--ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile b/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
new file mode 100644
index 000000000..8a53305c7
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
@@ -0,0 +1,22 @@
+FROM gentoo/portage:latest as portage
+FROM gentoo/stage3-amd64:latest
+
+# copy the entire portage volume in
+COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
+
+COPY ./config/package.use /etc/portage/
+COPY ./config/package.mask /etc/portage/
+COPY ./config/package.accept_keywords /etc/portage/
+COPY ./config/sets/paludis-deps /etc/portage/sets/
+
+RUN sed -e '/--no-cmake-config/d' \
+ -i /var/db/repos/gentoo/dev-libs/boost/boost-1.72.0-r2.ebuild \
+ && cd /var/db/repos/gentoo/dev-libs/boost \
+ && ebuild --force boost-1.72.0-r2.ebuild manifest \
+ && emerge --update --newuse --deep -v @world \
+ && emerge --update --newuse --deep -v @paludis-deps \
+ && rm -rf /var/db/repos/*
+
+# Unprivileged user
+RUN useradd -M builder
+USER builder