Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gaspard.legouic
cours
Commits
56bd0aa9
Verified
Commit
56bd0aa9
authored
2 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
added docker compose
parent
f53f428d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
slides/Makefile
+2
-15
2 additions, 15 deletions
slides/Makefile
slides/docker-compose.yml
+15
-0
15 additions, 0 deletions
slides/docker-compose.yml
with
17 additions
and
15 deletions
slides/Makefile
+
2
−
15
View file @
56bd0aa9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
slides/docker-compose.yml
0 → 100644
+
15
−
0
View file @
56bd0aa9
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)"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment