aboutsummaryrefslogtreecommitdiff
path: root/extras/dockerfiles/Dockerfile.ubuntu-18.04
blob: d458bb402f4b20029fd50d71fe9de42c4e17c839 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM ubuntu:18.04
MAINTAINER Marco Poletti <poletti.marco@gmail.com>

COPY common_install.sh common_cleanup.sh /

RUN bash -x /common_install.sh
RUN apt-get install -y --no-install-recommends curl

# For the Bazel repository
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -

RUN echo 'deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8' >> /etc/apt/sources.list.d/bazel.list

COPY ubuntu-18.04_custom.list /etc/apt/sources.list.d/

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F23C5A6CF475977595C89F51BA6932366A755776

RUN apt-get update -qq

RUN apt-get remove -y python3-pip
RUN python3 -m easy_install pip

RUN apt-get install -y --allow-unauthenticated --no-install-recommends \
        g++-8 \
        g++-7 \
        g++-6 \
        g++-5 \
        clang-3.9 \
        clang-4.0 \
        clang-5.0 \
        clang-6.0 \
        clang-7 \
        clang-8 \
        clang-9 \
        clang-10 \
        bazel \
        git \
        python3.8 \
        clang-tidy \
        clang-format

RUN python3.8 -m easy_install pip

RUN pip3 install absl-py
RUN pip3 install bidict
RUN pip3 install pytest
RUN pip3 install pytest-xdist
RUN pip3 install sh
RUN pip3 install setuptools
RUN pip3 install networkx
RUN pip3 install wheel

RUN bash -x /common_cleanup.sh