• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ubuntu:18.04
2
3RUN useradd -u 1000 -U -m -c Jenkins jenkins
4
5RUN apt update && apt -y upgrade \
6  && apt install -y \
7    software-properties-common \
8    clang \
9    clang++-9 \
10    gcc \
11    g++ \
12    git \
13    imagemagick \
14    make \
15    python3 \
16    python3-pip \
17    python3-venv \
18    python3-numpy \
19    python3-pil \
20    ca-certificates \
21    gnupg \
22    wget \
23  && rm -rf /var/lib/apt/lists/*
24
25# Install python modules
26RUN pip3 install requests
27
28# Install Coverity static analysis tools
29COPY coverity_* /tmp/
30RUN chmod 555 /tmp/coverity_install.sh && \
31  /tmp/coverity_install.sh -q --license.region=6 --license.agreement=agree --license.cov.path=/tmp/coverity_license.dat -dir /usr/local/cov-analysis && \
32  rm /tmp/coverity_*
33ENV PATH="/usr/local/cov-analysis/bin:$PATH"
34
35# Install up-to-date CMake, as standard Ubuntu 18.04 package is too old
36RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
37    | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg
38RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
39RUN apt-get update
40RUN apt-get install -y cmake