2024-01-07 12:48:42 +00:00
|
|
|
# (C) Serge Victor 2020-2024
|
|
|
|
|
|
|
|
#################################################################################################
|
|
|
|
# STAGE 1/2
|
|
|
|
#################################################################################################
|
2020-06-25 06:33:19 +00:00
|
|
|
|
|
|
|
# we always try to operate on recent ubuntu LTS
|
2024-01-07 12:48:42 +00:00
|
|
|
FROM ubuntu:jammy
|
2020-06-25 06:33:19 +00:00
|
|
|
|
|
|
|
LABEL maintainer="ser@gnu.org"
|
2024-01-08 10:05:37 +00:00
|
|
|
LABEL version="0.3"
|
2020-06-25 06:33:19 +00:00
|
|
|
LABEL description="LDP Builder as a Docker image"
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2024-01-08 10:05:37 +00:00
|
|
|
RUN apt-get update
|
2020-06-25 06:33:19 +00:00
|
|
|
|
|
|
|
# installing required packages and cleaning up after
|
2024-01-08 10:05:37 +00:00
|
|
|
RUN apt-get -y install texlive-font-utils linuxdoc-tools-text linuxdoc-tools-latex docbook-dsssl docbook-xsl docbook-utils htmldoc htmldoc-common docbook-xsl html2text docbook5-xml docbook-xsl-ns jing asciidoc libxml2-utils python3-stdeb fakeroot python3-all python3-networkx python3-nose fop ldp-docbook-xsl ldp-docbook-dsssl docbook opensp dh-python git python-all
|
2020-06-25 06:33:19 +00:00
|
|
|
|
|
|
|
# getting our builder soft
|
|
|
|
RUN git clone https://github.com/tLDP/python-tldp
|
|
|
|
RUN cd python-tldp && rm -rf debian && python3 setup.py --command-packages=stdeb.command bdist_deb
|
|
|
|
RUN dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
|
|
|
|
|
|
|
|
# we are done?
|
|
|
|
RUN ldptool --dump-cfg
|
2024-01-07 12:48:42 +00:00
|
|
|
|
|
|
|
#################################################################################################
|
|
|
|
# STAGE 2/2
|
|
|
|
#################################################################################################
|
|
|
|
FROM ubuntu:jammy
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2024-01-08 10:05:37 +00:00
|
|
|
RUN apt-get install -y rsync asciidoc docbook docbook-xsl-ns docbook5-xml fop html2text htmldoc jing ldp-docbook-dsssl ldp-docbook-xsl linuxdoc-tools-latex linuxdoc-tools-text python3 python3-networkx python3-nose sgml2x texlive-font-utils xsltproc
|
|
|
|
|
2024-01-07 12:48:42 +00:00
|
|
|
COPY --from=0 python-tldp/deb_dist/python3-tldp_*_all.deb .
|
2024-01-08 10:05:37 +00:00
|
|
|
RUN apt-get install ./python3-tldp_*_all.deb --fix-broken -y
|
|
|
|
|
|
|
|
RUN apt-get clean
|
|
|
|
RUN apt-get autoremove -y
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
2024-01-07 12:48:42 +00:00
|
|
|
|
|
|
|
# we are done?
|
|
|
|
RUN ldptool --dump-cfg
|
|
|
|
|
|
|
|
# the happy end.
|