File tree Expand file tree Collapse file tree 2 files changed +68
-1
lines changed Expand file tree Collapse file tree 2 files changed +68
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM pandoc/latex:latest as matplotlib-builder
2+ RUN apk --no-cache add \
3+ alpine-sdk \
4+ freetype-dev \
5+ libpng \
6+ libpng-dev \
7+ pkgconf \
8+ python3 \
9+ python3-dev
10+ RUN pip3 install matplotlib
11+
12+ FROM pandoc/latex:latest
13+ RUN apk --no-cache add \
14+ aspell \
15+ aspell-en \
16+ aspell-fr \
17+ bash \
18+ fontconfig \
19+ graphviz \
20+ inkscape \
21+ libpng \
22+ make \
23+ openjdk8-jre \
24+ python \
25+ python3 \
26+ ttf-dejavu \
27+ wget
28+
29+ RUN tlmgr install \
30+ adjustbox \
31+ bibexport \
32+ changes \
33+ collectbox \
34+ ifmtarg \
35+ silence \
36+ standalone \
37+ todonotes \
38+ truncate \
39+ xifthen \
40+ xstring
41+
42+ COPY --from=matplotlib-builder \
43+ /usr/lib/python3.6/site-packages/ \
44+ /usr/lib/python3.6/site-packages/
45+
46+ # Download plantuml.jar for plantuml filter
47+ ARG plantuml_filename="plantuml.1.2018.9.jar"
48+ RUN cd $HOME && \
49+ wget --quiet https://sourceforge.net/projects/plantuml/files/$plantuml_filename && \
50+ cd -
51+
52+ ENV PLANTUML "/root/$plantuml_filename"
53+ ENV DIFF "diff -u"
54+
55+ # Override entrypoint set in parent image (defaults to "/usr/bin/pandoc"). This
56+ # image should behave like a base image.
57+ ENTRYPOINT []
58+ CMD [ "/bin/sh" ]
Original file line number Diff line number Diff line change 11FILTERS =$(wildcard $(shell find * -type d | grep -v '[/\\]') )
2- .PHONY : test
2+ LUA_FILTERS_TEST_IMAGE = pandoc/lua-filters-test
3+
4+ .PHONY : test docker-test docker-test-image
35
46test :
57 bash runtests.sh $(FILTERS )
8+
9+ docker-test :
10+ docker run --rm --volume " $( PWD) :/data" $(LUA_FILTERS_TEST_IMAGE ) \
11+ make test
12+
13+ docker-test-image : .tools/Dockerfile
14+ docker build --tag $(LUA_FILTERS_TEST_IMAGE ) --file $< .
You can’t perform that action at this time.
0 commit comments