github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/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 \
    29      texlive-latex-base \
    30      texlive-fonts-recommended \
    31      latex-xcolor
    32  
    33  # Install the extra R packages we need.
    34  RUN install2.r --error --deps TRUE \
    35  	gridExtra \
    36  	ggpubr
    37  
    38  # Pull in our actual worker scripts
    39  COPY . /scripts
    40  
    41  # By default generate the report
    42  CMD ["/scripts/genreport.sh"]