Как настроить контейнер UBI8 для компиляции PDF-документов через sphinx?

Попробуйте использовать следующее:

passwd -S

С man-страницы passwd (1 )мы читаем:

-S Report password status on the named account. The first part indicates if the user account is locked (LK), has no password (NP), or has an existing or locked password (PS). The second part gives the date of the last password change. The next parts are the minimum age, maximum age, warning period, and inactivity period for the password.

0
06.03.2020, 23:05
1 ответ

Различные требования распространяются по репозиториям CodeReady, AppStream и Epel. Вам нужно будет установить все это, а затем окажется, что необходима установка почти каждого пакета texlive-*. Я поместил их список в texlive -requirements.txt. Затем я создал этот Dockerfile и построил его. Я также предполагаю, что у вас будут некоторые требования к Python, которые нужно указать в файле -requirements.txt.

FROM ubi8
WORKDIR /docs

# Setup Extra RPM repositories
# CodeReady Builder is an EPEL dependency and has several texlive-* packages
# Epel is a dependency of latexmk
RUN yum -y update \
  && yum -y install yum-utils \
  && yum-config-manager --enable codeready-builder-for-rhel-8-x86_64-rpms \
  && rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 \
  && yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# Fill texlive-requirements.txt with all the packages in 
# `yum list available|grep texlive` as run from a UBI8 container with 
# the above repos provided
ARG deps="ImageMagick graphviz make wget enchant curl python3-pip latexmk"
ADD texlive-requirements.txt /tmp/yum.txt
RUN yum install -y $deps $(cat /tmp/yum.txt) && \
    yum clean all

# For whatever python dependencies, put them in pip-requirements.txt
ADD pip-requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt

Это должно работать точно так же, как образ в Docker Hub, который предоставляет sphinx , включая монтирование тома и поддержку сборок HTML и LatexPDF.

0
28.04.2021, 23:21

Теги

Похожие вопросы