summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/docker/fedora36/Dockerfile
blob: ea42561bcd6e5b17f0477e30c97789aaa8829b9d (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 fedora:36 as rvm-build
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>

COPY install_rvm.sh /root/install_rvm.sh
RUN sh /root/install_rvm.sh

FROM fedora:36 AS clang-tidy-headers
MAINTAINER Kyle Edwards <kyle.edwards@kitware.com>

COPY install_clang_tidy_headers.sh /root/install_clang_tidy_headers.sh
RUN sh /root/install_clang_tidy_headers.sh

FROM fedora:36 AS iwyu
MAINTAINER Kyle Edwards <kyle.edwards@kitware.com>

COPY install_iwyu.sh /root/install_iwyu.sh
RUN sh /root/install_iwyu.sh

FROM fedora:36
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>

COPY install_deps.sh /root/install_deps.sh
RUN sh /root/install_deps.sh

COPY --from=rvm-build /root/rvm.tar /root/rvm.tar
RUN tar -C /usr/local -xf /root/rvm.tar \
 && rm /root/rvm.tar
COPY --from=clang-tidy-headers /root/clang-tidy-headers.tar /root/clang-tidy-headers.tar
RUN tar -C /usr/include -xf /root/clang-tidy-headers.tar \
 && rm /root/clang-tidy-headers.tar
COPY --from=iwyu /root/iwyu.tar /root/iwyu.tar
RUN tar -C / -xf /root/iwyu.tar \
 && rm /root/iwyu.tar