summaryrefslogtreecommitdiffstats
path: root/taskcluster/docker/static-analysis-build/Dockerfile
blob: 3fcb1f65fc1ce762ac5341062fcc1914877986c8 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM $DOCKER_IMAGE_PARENT
LABEL maintainer="Andi-Bogdan Postelnicu <andi@mozilla.com>"

VOLUME /builds/worker/checkouts
VOLUME /builds/worker/workspace
VOLUME /builds/worker/tooltool-cache

ENV XZ_OPT=-T0

# %include taskcluster/docker/recipes/prepare_openjdk.sh
COPY topsrcdir/taskcluster/docker/recipes/prepare_openjdk.sh /tmp/prepare_openjdk.sh
RUN /tmp/prepare_openjdk.sh && rm /tmp/prepare_openjdk.sh

ARG TASKCLUSTER_ROOT_URL
ARG DOCKER_IMAGE_PACKAGES
RUN /usr/local/sbin/setup_packages.sh $TASKCLUSTER_ROOT_URL $DOCKER_IMAGE_PACKAGES

RUN apt-get update && \
    apt-get install \
      autoconf2.13 \
      automake \
      bison \
      bzip2 \
      cmake \
      flex \
      curl \
      libsqlite3-dev \
      file \
      gawk \
      gcc-multilib \
      gnupg \
      jq \
      libc6-dev \
      libstdc++-8-dev \
      libmpfr-dev \
      nasm \
      openjdk-8-jdk-headless \
      pkg-config \
      patch \
      p7zip-full \
      procps \
      python-dev \
      python-pip \
      python-setuptools \
      python-virtualenv \
      python3-dev \
      rsync \
      screen \
      tar \
      unzip \
      uuid \
      valgrind \
      wget \
      yasm \
      zip \
      zlib1g-dev \
      x11-utils \
      xvfb \
      linux-libc-dev \
      libdbus-glib-1-dev \
      libfontconfig1-dev \
      libfreetype6-dev \
      libgconf2-dev \
      libgmp-dev \
      libgtk-3-dev \
      libgtk2.0-dev \
      libpango1.0-dev \
      libpulse-dev \
      libx11-xcb-dev \
      libxt-dev \
      lib32z1 \
      patchelf

# Install opam 2
RUN curl -sL https://github.com/ocaml/opam/releases/download/2.0.3/opam-2.0.3-x86_64-linux > /usr/bin/opam && \
    chmod +x /usr/bin/opam