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 ...@@ -8,14 +8,14 @@ OPTIONS += --filter=pandoc-numbering
OPTIONS += --filter=pandoc-crossref OPTIONS += --filter=pandoc-crossref
PDFOPTIONS = --highlight-style kate PDFOPTIONS = --highlight-style kate
PDFOPTIONS += --pdf-engine pdflatex PDFOPTIONS += --pdf-engine xelatex
PDFOPTIONS += --number-sections PDFOPTIONS += --number-sections
PDFOPTIONS += --template=./default.latex # PDFOPTIONS += --template=./default.latex
HTMLOPTIONS += -t html5 HTMLOPTIONS += -t html5
HTMLOPTIONS += -c css/tufte-css/tufte.css HTMLOPTIONS += -c css/tufte-css/tufte.css
HTMLOPTIONS += --self-contained HTMLOPTIONS += --standalone
HTMLOPTIONS += --mathjax=MathJax.js HTMLOPTIONS += --mathjax=MathJax.js
CLASS_SOURCES := $(sort $(filter-out README.md, $(wildcard *.md))) CLASS_SOURCES := $(sort $(filter-out README.md, $(wildcard *.md)))
...@@ -29,6 +29,13 @@ TEX := $(patsubst %.md, %.tex, $(SOURCES)) ...@@ -29,6 +29,13 @@ TEX := $(patsubst %.md, %.tex, $(SOURCES))
all: cours.pdf cours.html 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) debug: $(PDF) $(TEX)
cours.pdf: $(CLASS_SOURCES) cours.pdf: $(CLASS_SOURCES)
......
version: "3.3" version: "3.3"
services: services:
pandoc: cours:
#To use dockerfile : build: . #To use dockerfile : build: .
image: omalaspinas/c_pandoc:latest image: omalaspinas/c_pandoc:latest
user: 1000:1000 environment:
container_name: pandoc USER: 1000
GROUP: 1000
container_name: cours
volumes: volumes:
- .:/app - ./:/data
working_dir: /app 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