FROM ubuntu:18.04

LABEL build.environment.version="2.3.0"

RUN useradd -u 1001 -U -m -c Jenkins jenkins

RUN apt update && apt-get install -y \
    software-properties-common \
    clang \
    clang++-9 \
    gcc \
    g++ \
    git \
    imagemagick \
    make \
    python3 \
    python3-pip \
    python3-venv \
    python3-numpy \
    python3-pil \
    ca-certificates \
    gnupg \
    wget

RUN pip3 install requests

# Install up-to-date CMake, as standard Ubuntu 18.04 package is too old
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
    | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
RUN apt-get update
RUN apt-get install -y cmake
FROM ubuntu:18.04

LABEL build.environment.version="2.4.0"

RUN useradd -u 1001 -U -m -c Jenkins jenkins

RUN apt update && apt-get install -y \
    software-properties-common \
    clang \
    clang++-9 \
    gcc \
    g++ \
    git \
    imagemagick \
    make \
    python3 \
    python3-pip \
    python3-venv \
    python3-numpy \
    python3-pil \
    ca-certificates \
    gnupg \
    wget

# Install python modules
RUN pip3 install requests

# Install Coverity static analysis tools
COPY cov-analysis-linux64-2019.09 /coverity/
RUN chmod -R a+rw /coverity
ENV PATH="/coverity/bin:$PATH"

# Install up-to-date CMake, as standard Ubuntu 18.04 package is too old
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
    | gpg --dearmor - > /etc/apt/trusted.gpg.d/kitware.gpg
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
RUN apt-get update
RUN apt-get install -y cmake
Add Coverity to Docker image
Add Coverity to Docker image
