aboutsummaryrefslogtreecommitdiff
path: root/ci/docker/exherbo/paludis-exherbo-clang/Dockerfile
blob: abe755ea445ec974bb9195178ec7c9f3078c22fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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