-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust Dockerfile, deps, readme, scripts, fonts. Latex workflow works.
- Loading branch information
EsGeh
authored and
EsGeh
committed
Nov 15, 2019
1 parent
61b0637
commit 381b325
Showing
14 changed files
with
251 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/scripts/ | ||
/env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/input/ | ||
/output/ | ||
/dependencies/ | ||
examples | ||
|
||
# Byte-compiled / optimized / DLL files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,105 @@ | ||
FROM python:3 | ||
FROM python:3.8-buster | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV SHELL /bin/bash | ||
|
||
ENV HOME_DIR /eoa/skripts | ||
|
||
|
||
RUN sed -i "s#deb http://deb.debian.org/debian buster main#deb http://deb.debian.org/debian buster main contrib non-free#g" /etc/apt/sources.list | ||
# sed -i "s#deb http://http.us.debian.org/debian jessie main contrib non-free#deb http://http.us.debian.org/debian jessie main contrib non-free#g" /etc/apt/sources.list | ||
|
||
# add package source 'contrib': | ||
# RUN echo "deb http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list | ||
# RUN echo "deb-src http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list | ||
|
||
# ------------------------------------------ | ||
# install necessary packages via apt-get: | ||
# ------------------------------------------ | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
graphicsmagick \ | ||
pandoc \ | ||
pandoc-citeproc \ | ||
curl \ | ||
biber | ||
|
||
# install latex: | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
texlive-xetex | ||
|
||
# install fonts: | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
texlive-fonts-extra \ | ||
ttf-mscorefonts-installer \ | ||
msttcorefonts \ | ||
fonts-lmodern \ | ||
fonts-noto-cjk \ | ||
texlive-lang-chinese \ | ||
texlive-science \ | ||
texlive-bibtex-extra \ | ||
tex-gyre | ||
|
||
# install fonts: | ||
RUN cp -r \ | ||
/usr/share/texlive/texmf-dist/fonts/opentype/public/xits \ | ||
/usr/local/share/fonts/ | ||
|
||
RUN fc-cache -f | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
less | ||
|
||
# install fonts: | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
tralics | ||
|
||
# needed for 'pdfcrop': | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
texlive-extra-utils | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
tex4ht | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
tidy | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ghostscript | ||
|
||
# install latex: | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
default-jre | ||
|
||
# this is supposed to save memory: | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
# ------------------------------------------ | ||
# directories for manual installations: | ||
# ------------------------------------------ | ||
|
||
ENV INSTALL_DIR "/eoa/install" | ||
RUN mkdir -p "$INSTALL_DIR/" | ||
ENV BIN_DIR "/eoa/bin" | ||
RUN mkdir -p "$BIN_DIR/" | ||
ENV PATH $BIN_DIR:$PATH | ||
|
||
# ------------------------------------------ | ||
# install python dependencies: | ||
# ------------------------------------------ | ||
|
||
WORKDIR ${INSTALL_DIR} | ||
COPY requirements.txt "$INSTALL_DIR/" | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r "requirements.txt" | ||
|
||
# ------------------------------------------ | ||
# manual installations: | ||
# ------------------------------------------ | ||
|
||
# install saxon | ||
# Debians version of saxon is too old. We need to download it "manually" :-P | ||
WORKDIR ${INSTALL_DIR} | ||
RUN wget 'https://sourceforge.net/projects/saxon/files/Saxon-HE/9.6/SaxonHE9-6-0-10J.zip' | ||
RUN unzip -d "$BIN_DIR" "SaxonHE9-6-0-10J.zip" | ||
WORKDIR ${BIN_DIR} | ||
RUN echo 'java -jar $BIN_DIR/saxon9he.jar "$@"' > $BIN_DIR/saxon | ||
RUN chmod ugo+x $BIN_DIR/saxon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.