Skip to content
Snippets Groups Projects
Verified Commit b07070a4 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added docker compose

parent 750378d6
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,14 @@ OPTIONS += --filter=pandoc-numbering
OPTIONS += --filter=pandoc-crossref
PDFOPTIONS = --highlight-style kate
PDFOPTIONS += --pdf-engine pdflatex
PDFOPTIONS += --pdf-engine xelatex
PDFOPTIONS += --number-sections
PDFOPTIONS += --template=./default.latex
# PDFOPTIONS += --template=./default.latex
HTMLOPTIONS += -t html5
HTMLOPTIONS += -c css/tufte-css/tufte.css
HTMLOPTIONS += --self-contained
HTMLOPTIONS += --standalone
HTMLOPTIONS += --mathjax=MathJax.js
CLASS_SOURCES := $(sort $(filter-out README.md, $(wildcard *.md)))
......@@ -29,6 +29,13 @@ TEX := $(patsubst %.md, %.tex, $(SOURCES))
all: cours.pdf cours.html
docker: docker-compose.yml
docker-compose run cours
docker_clean: docker-compose.yml
docker-compose run cours clean
debug: $(PDF) $(TEX)
cours.pdf: $(CLASS_SOURCES)
......
version: "3.3"
services:
pandoc:
cours:
#To use dockerfile : build: .
image: omalaspinas/c_pandoc:latest
user: 1000:1000
container_name: pandoc
environment:
USER: 1000
GROUP: 1000
container_name: cours
volumes:
- .:/app
working_dir: /app
- ./:/data
entrypoint: ["make"]
working_dir: /data
# user: "$(id -u):$(id -g)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment