github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/metrics/report/report_dockerfile/Dockerfile (about)

     1  # Copyright (c) 2018 Intel Corporation
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  # Set up an Ubuntu image with the components needed to generate a
     6  # metrics report. That includes:
     7  #  - R
     8  #  - The R 'tidyverse'
     9  #  - pandoc
    10  #  - The report generation R files and helper scripts
    11  
    12  # Start with the base rocker tidyverse.
    13  # We would have used the 'verse' base, that already has some of the docs processing
    14  # installed, but I could not figure out how to add in the extra bits we needed to
    15  # the lite tex version is uses.
    16  # Here we specify a tag for base image instead of using latest to let it free from
    17  # the risk from the update of latest base image.
    18  FROM rocker/tidyverse:3.6.0
    19  
    20  # Version of the Dockerfile
    21  LABEL DOCKERFILE_VERSION="1.2"
    22  
    23  # Without this some of the package installs stop to try and ask questions...
    24  ENV DEBIAN_FRONTEND=noninteractive
    25  
    26  # Install the extra doc processing parts we need for our Rmarkdown PDF flow.
    27  RUN apt-get update -qq && \
    28    apt-get install -y --no-install-recommends \
    29      texlive-latex-base \
    30      texlive-fonts-recommended \
    31      latex-xcolor && \
    32    apt-get clean && \
    33    rm -rf /var/lib/apt/lists
    34  
    35  # Install the extra R packages we need.
    36  RUN install2.r --error --deps TRUE \
    37  	gridExtra \
    38  	ggpubr
    39  
    40  # Pull in our actual worker scripts
    41  COPY . /scripts
    42  
    43  # By default generate the report
    44  CMD ["/scripts/genreport.sh"]