aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2020-03-03 13:18:40 +0100
committerAvatar Marvin Schmidt <marv@exherbo.org> 2020-03-10 06:05:47 +0100
commit60ec698617365bf054fa4bdfabaa821b21d76199 (patch)
treebd0bbd118acd133a3577d961a5c44536b6e525a7 /ci/docker/gentoo/paludis-gentoo-gcc/Dockerfile
parent9bee89a9483838fcfc8037443c9016bcc83dbda9 (diff)
downloadpaludis-60ec698617365bf054fa4bdfabaa821b21d76199.tar.gz
paludis-60ec698617365bf054fa4bdfabaa821b21d76199.tar.xz
ci: gentoo: Rename docker directory for consistency
Makes the gitlab CI config easier
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..0f1ef0776
--- /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.71.0.ebuild \
+ && cd /var/db/repos/gentoo/dev-libs/boost \
+ && ebuild --force boost-1.71.0.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