aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/exherbo/paludis-exherbo-clang/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ci/docker/exherbo/paludis-exherbo-clang/Dockerfile')
-rw-r--r--ci/docker/exherbo/paludis-exherbo-clang/Dockerfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/ci/docker/exherbo/paludis-exherbo-clang/Dockerfile b/ci/docker/exherbo/paludis-exherbo-clang/Dockerfile
new file mode 100644
index 000000000..abe755ea4
--- /dev/null
+++ b/ci/docker/exherbo/paludis-exherbo-clang/Dockerfile
@@ -0,0 +1,33 @@
+FROM marvins/exherbo-clang:latest
+MAINTAINER Marvin Schmidt <marv@exherbo.org>
+
+# Switch to option.conf.d layout
+RUN mkdir /etc/paludis/options.conf.d \
+ && mv /etc/paludis/options.conf /etc/paludis/options.conf.d/10_clang.conf
+
+COPY ./config/options/* /etc/paludis/options.conf.d/
+COPY ./config/sets/paludis-deps.conf /etc/paludis/sets/
+
+RUN chgrp tty /dev/tty \
+ && eclectic env update \
+ && source /etc/profile \
+ && cave resolve -1z repository/{media,pyro,scientific} -x \
+ && cave resolve -1z -Ks -ks -x \
+ -o dev-python/sphinxcontrib-websupport \
+ --recommendations ignore \
+ --suggestions ignore \
+ paludis-deps
+RUN eclectic c++ set clang \
+ && eclectic cc set clang \
+ && eclectic cpp set clang \
+ && eclectic python3 set 3.6
+
+# Clean up
+RUN rm -fr \
+ /var/log/paludis/* \
+ /var/cache/paludis/distfiles/* \
+ /var/tmp/paludis/build/*
+
+# Add non-privileged user
+RUN useradd -M builder
+USER builder