fix: install correct pygments package for debian and ubuntu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cf5c40a692
commit
c8488d5ab3
@ -10,6 +10,9 @@ LABEL maintainer="Markus Pesch <markus.pesch@cryptic.systems>"
|
|||||||
# Environment
|
# Environment
|
||||||
ENV DEBIAN_FRONTEND="noninteractive"
|
ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
|
# set shell
|
||||||
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
# Runs
|
# Runs
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get upgrade --yes
|
RUN apt-get upgrade --yes
|
||||||
@ -22,9 +25,16 @@ RUN apt-get install --yes \
|
|||||||
make \
|
make \
|
||||||
texlive-full
|
texlive-full
|
||||||
|
|
||||||
# version specific packages
|
# install distribution specific versions
|
||||||
RUN if [ $(cat /etc/debian_version) != "11.0" ]; then apt-get install --yes python-pygments; fi
|
RUN case "$(cat /etc/debian_version)" in \
|
||||||
RUN if [ $(cat /etc/debian_version) = "11.0" ]; then apt-get install --yes python3-pygments; fi
|
11*) \
|
||||||
|
apt-get install --yes python3-pygments \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
apt-get install --yes python-pygments \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
# remove dpkg lists
|
# remove dpkg lists
|
||||||
RUN rm --recursive --force /var/lib/apt/lists/*
|
RUN rm --recursive --force /var/lib/apt/lists/*
|
||||||
|
@ -10,6 +10,9 @@ LABEL maintainer="Markus Pesch <markus.pesch@cryptic.systems>"
|
|||||||
# Environment
|
# Environment
|
||||||
ENV DEBIAN_FRONTEND="noninteractive"
|
ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
|
# set shell
|
||||||
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
# Runs
|
# Runs
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get upgrade --yes
|
RUN apt-get upgrade --yes
|
||||||
@ -23,9 +26,15 @@ RUN apt-get install --yes \
|
|||||||
texlive-full \
|
texlive-full \
|
||||||
xindy
|
xindy
|
||||||
|
|
||||||
# version specific packages
|
# install distribution specific versions
|
||||||
RUN if [ $(cat /etc/debian_version) != "bullseye/sid" ]; then apt-get install --yes python-pygments; fi
|
RUN case "$(cat /etc/debian_version)" in \
|
||||||
RUN if [ $(cat /etc/debian_version) = "bullseye/sid" ]; then apt-get install --yes python3-pygments; fi
|
bullseye/sid*) \
|
||||||
|
apt-get install --yes python3-pygments \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
apt-get install --yes python-pygments \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
|
||||||
# remove dpkg lists
|
# remove dpkg lists
|
||||||
RUN rm --recursive --force /var/lib/apt/lists/*
|
RUN rm --recursive --force /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user