Merge pull request #243 from alee/docker
authorFrançois Michonneau <francois.michonneau@gmail.com>
Mon, 11 Jun 2018 19:59:12 +0000 (15:59 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Jun 2018 19:59:12 +0000 (15:59 -0400)
Makefile: add docker-serve target

Makefile

index 74f655d6f8c79d9d3f847d2efb229a17d51a3a06..f0b73e6064bf52e64c6c27967a70c81a21cc2d89 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
 # Settings
 MAKEFILES=Makefile $(wildcard *.mk)
 JEKYLL=jekyll
+JEKYLL_VERSION=3.7.3
 PARSER=bin/markdown_ast.rb
 DST=_site
 
@@ -16,6 +17,10 @@ all : commands
 commands :
        @grep -h -E '^##' ${MAKEFILES} | sed -e 's/## //g'
 
+## docker-serve     : use docker to build the site
+docker-serve :
+       docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve
+
 ## serve            : run a local server.
 serve : lesson-md
        ${JEKYLL} serve