mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-09-04 12:51:28 +00:00
A recent change to debian apt repositories led to build errors for the report container. The error was around stretch release files. The container image we are based on published an update which fixes this error. This patch updates to use :latest to avoid errors when building. Signed-off-by: David Lyle <dklyle0@gmail.com>
41 lines
1.1 KiB
Docker
Executable File
41 lines
1.1 KiB
Docker
Executable File
# Copyright (c) 2018-2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Set up an Ubuntu image with the components needed to generate a
|
|
# metrics report. That includes:
|
|
# - R
|
|
# - The R 'tidyverse'
|
|
# - pandoc
|
|
# - The report generation R files and helper scripts
|
|
|
|
# Start with the base rocker tidyverse.
|
|
# We would have used the 'verse' base, that already has some of the docs processing
|
|
# installed, but I could not figure out how to add in the extra bits we needed to
|
|
# the lite tex version is uses.
|
|
FROM rocker/tidyverse:latest
|
|
|
|
# Version of the Dockerfile
|
|
LABEL DOCKERFILE_VERSION="1.0"
|
|
|
|
# Without this some of the package installs stop to try and ask questions...
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install the extra doc processing parts we need for our Rmarkdown PDF flow.
|
|
RUN apt-get update -qq && \
|
|
apt-get install -y \
|
|
texlive-latex-base \
|
|
texlive-fonts-recommended \
|
|
latex-xcolor
|
|
|
|
# Install the extra R packages we need.
|
|
RUN install2.r --error --deps TRUE \
|
|
gridExtra \
|
|
ggpubr
|
|
|
|
# Pull in our actual worker scripts
|
|
COPY . /scripts
|
|
|
|
# By default generate the report
|
|
CMD ["/scripts/genreport.sh"]
|