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

added docker compose

parent f53f428d
Branches
Tags
No related merge requests found
......@@ -8,15 +8,6 @@ PDFOPTIONS += -V themeoptions:numbering=none -V themeoptions:progressbar=foot
PDFOPTIONS += -V fontsize=smaller
PDFOPTIONS += -V urlcolor=blue
REVEALOPTIONS = -t revealjs
REVEALOPTIONS += -F mermaid-filter
REVEALOPTIONS += --self-contained
REVEALOPTIONS += -V revealjs-url=reveal.js
REVEALOPTIONS += -V theme=white
REVEALOPTIONS += -V width=1920
REVEALOPTIONS += -V margin=0
REVEALOPTIONS += --slide-level=1
MD=$(wildcard *.md) # Tous les fichiers .md
PDF=$(MD:%.md=%.pdf) # Pour les fichier pdf on transforme .md -> .pdf
HTML=$(MD:%.md=%.html) # Pour les fichier html on transforme .md -> .html
......@@ -27,11 +18,10 @@ all: puppeteer $(PDF)
# all: puppeteer $(PDF) $(HTML) # La cible par défaut (all) exécute les cibles %.pdf
docker: docker-compose.yml
docker-compose run slides make puppeteer -k || true
docker-compose run slides make all -k || true
docker-compose run slides
docker_clean: docker-compose.yml
docker-compose run slides make clean -k || true
docker-compose run slides clean
puppeteer:
@echo "Setting chromium to $(CHROMIUM) for puppeteer"
......@@ -48,9 +38,6 @@ markdown: $(MARKDOWN) # La markdown les cibles %.markdown
%.pdf: %.md metadata.yaml # %.pdf (chaque fichier %.md génère un fichier avec le même nom mais l'extension .pdf et la dépendance metadata.yaml)
pandoc -s $(OPTIONS) $(PDFOPTIONS) -o $@ $^
%.html: %.md metadata.yaml
pandoc -s $(OPTIONS) $(REVEALOPTIONS) -o $@ $^
%.markdown: %.md metadata.yaml yq
sed '1 { /^---/ { :a N; /\n---/! ba; d} }' $< > no_header
grep -v -F -x -f no_header $< > header.yaml
......
version: "3.3"
services:
slides:
#To use dockerfile : build: .
image: omalaspinas/c_pandoc:latest
environment:
USER: 1000
GROUP: 1000
container_name: slides
volumes:
- ./:/data
entrypoint: ["make"]
# command: "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