Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker #97

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ before_install:

# Attempt to create a PDF
script:
- make help
- make pdf
- cat pandoc.log
- make html
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM pandoc/ubuntu-latex

RUN tlmgr update --self \
&& tlmgr install truncate \
&& tlmgr install tocloft \
&& tlmgr install wallpaper \
&& tlmgr install morefloats \
&& tlmgr install sectsty \
&& tlmgr install siunitx \
&& tlmgr install threeparttable \
&& tlmgr install makecell \
&& tlmgr update l3packages \
&& tlmgr update l3kernel \
&& tlmgr update l3experimental

RUN apt-get update \
&& apt-get install -y python3 python3-pip pandoc-citeproc \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install \
pandoc-fignos \
pandoc-eqnos \
pandoc-tablenos \
pandoc-secnos \
pandoc-shortcaption \
fabric
34 changes: 20 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@ SCRATCHDIR=$(BASEDIR)/scratch

BIBFILE=$(INPUTDIR)/references.bib

DOCKER_TAG=phd_thesis_markdown

help:
@echo ' '
@echo 'Makefile for the Markdown thesis '
@echo ' '
@echo 'Usage: '
@echo ' make install install pandoc plugins
@echo ' make html generate a web version
@echo ' make pdf generate a PDF file '
@echo ' make docx generate a Docx file '
@echo ' make tex generate a Latex file '
@echo ' '
@echo ' '
@echo 'get local templates with: pandoc -D latex/html/etc '
@echo 'or generic ones from: https://github.com/jgm/pandoc-templates '
@echo ''
@echo 'Makefile for the Markdown thesis'
@echo ''
@echo 'Usage:'
@echo ' make docker build docker image "$(DOCKER_TAG)"'
@echo ' make install install pandoc plugins'
@echo ' make html generate a web version'
@echo ' make pdf generate a PDF file'
@echo ' make docx generate a Docx file'
@echo ' make tex generate a Latex file'
@echo ''
@echo ''
@echo 'get local templates with: pandoc -D latex/html/etc'
@echo 'or generic ones from: https://github.com/jgm/pandoc-templates'

docker:
docker build --tag "$(DOCKER_TAG)" .

install:
sh $(BASEDIR)/install.sh
Expand Down Expand Up @@ -89,4 +95,4 @@ html:
cp -r "$(INPUTDIR)/figures" "$(OUTPUTDIR)/source/figures"


.PHONY: help install pdf docx html tex
.PHONY: help docker install pdf docx html tex