aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/gentoo
diff options
context:
space:
mode:
Diffstat (limited to 'ci/docker/gentoo')
-rw-r--r--ci/docker/gentoo/paludis-gentoo/Dockerfile18
-rwxr-xr-xci/docker/gentoo/paludis-gentoo/build.sh4
-rw-r--r--ci/docker/gentoo/paludis-gentoo/config/package.accept_keywords14
-rw-r--r--ci/docker/gentoo/paludis-gentoo/config/package.mask1
-rw-r--r--ci/docker/gentoo/paludis-gentoo/config/package.use9
-rw-r--r--ci/docker/gentoo/paludis-gentoo/config/sets/paludis-deps17
6 files changed, 63 insertions, 0 deletions
diff --git a/ci/docker/gentoo/paludis-gentoo/Dockerfile b/ci/docker/gentoo/paludis-gentoo/Dockerfile
new file mode 100644
index 000000000..fa08311d8
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/Dockerfile
@@ -0,0 +1,18 @@
+FROM gentoo/portage:latest as portage
+FROM gentoo/stage3-amd64:latest
+
+# copy the entire portage volume in
+COPY --from=portage /usr/portage /usr/portage
+
+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 emerge --update --newuse --deep -v @world \
+ && emerge --update --newuse --deep -v @paludis-deps \
+ && rm -rf /usr/portage/*
+
+# Unprivileged user
+RUN useradd -M builder
+USER builder
diff --git a/ci/docker/gentoo/paludis-gentoo/build.sh b/ci/docker/gentoo/paludis-gentoo/build.sh
new file mode 100755
index 000000000..ef7ba5072
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/build.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+# vim: set sw=4 sts=4 ts=4 et tw=80 :
+
+docker build --no-cache --rm --pull -t paludis/gentoo-gcc .
diff --git a/ci/docker/gentoo/paludis-gentoo/config/package.accept_keywords b/ci/docker/gentoo/paludis-gentoo/config/package.accept_keywords
new file mode 100644
index 000000000..a0be4ae36
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/config/package.accept_keywords
@@ -0,0 +1,14 @@
+# required by app-crypt/rhash-1.3.5::gentoo[ssl,-libressl]
+# required by dev-util/cmake-3.9.6::gentoo
+# required by media-libs/openjpeg-2.3.0::gentoo
+# required by app-text/ghostscript-gpl-9.21::gentoo
+# required by app-doc/doxygen-1.8.14-r1::gentoo
+# required by @selected
+# required by @world (argument)
+=dev-libs/openssl-1.0.2o-r6 ~amd64
+
+# required by dev-libs/boost-1.66.0::gentoo
+# required by =dev-libs/boost-1.66.0 (argument)
+=dev-util/boost-build-1.66.0 **
+# required by =dev-libs/boost-1.66.0 (argument)
+=dev-libs/boost-1.66.0 **
diff --git a/ci/docker/gentoo/paludis-gentoo/config/package.mask b/ci/docker/gentoo/paludis-gentoo/config/package.mask
new file mode 100644
index 000000000..1e5cf13ad
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/config/package.mask
@@ -0,0 +1 @@
+>=dev-libs/boost-1.65
diff --git a/ci/docker/gentoo/paludis-gentoo/config/package.use b/ci/docker/gentoo/paludis-gentoo/config/package.use
new file mode 100644
index 000000000..1e70c7608
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/config/package.use
@@ -0,0 +1,9 @@
+# required by dev-python/sqlalchemy-1.2.7::gentoo[python_targets_python3_5]
+# required by dev-python/sphinxcontrib-websupport-1.0.1-r1::gentoo
+# required by dev-python/sphinx-1.6.5::gentoo[-test]
+# required by dev-python/sphinx (argument)
+dev-lang/python sqlite
+
+dev-libs/boost python
+
+*/* -ruby_targets_ruby23 ruby_targets_ruby24
diff --git a/ci/docker/gentoo/paludis-gentoo/config/sets/paludis-deps b/ci/docker/gentoo/paludis-gentoo/config/sets/paludis-deps
new file mode 100644
index 000000000..4cc72ae03
--- /dev/null
+++ b/ci/docker/gentoo/paludis-gentoo/config/sets/paludis-deps
@@ -0,0 +1,17 @@
+app-doc/doxygen
+app-text/asciidoc
+app-text/htmltidy
+app-text/xmlto
+dev-python/sphinx
+dev-ruby/syntax
+
+dev-cpp/gtest
+
+dev-libs/boost
+dev-lang/ruby:2.4
+
+app-arch/libarchive
+
+dev-db/sqlite:3
+
+dev-util/ninja