You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2017/12/05 01:25:19 UTC

kylin git commit: use docker build document

Repository: kylin
Updated Branches:
  refs/heads/document 988e08652 -> ebd561c42


use docker build document

Signed-off-by: shaofengshi <sh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/ebd561c4
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/ebd561c4
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/ebd561c4

Branch: refs/heads/document
Commit: ebd561c423d55e326dbf5ab7dabcd999b5811749
Parents: 988e086
Author: YongjieZhao <yo...@gmail.com>
Authored: Mon Dec 4 16:38:46 2017 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Tue Dec 5 09:10:02 2017 +0800

----------------------------------------------------------------------
 website/Dockerfile |  4 ++++
 website/Makefile   | 13 +++++++++++++
 2 files changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/ebd561c4/website/Dockerfile
----------------------------------------------------------------------
diff --git a/website/Dockerfile b/website/Dockerfile
new file mode 100644
index 0000000..56ff437
--- /dev/null
+++ b/website/Dockerfile
@@ -0,0 +1,4 @@
+FROM jekyll/jekyll:2.5.3
+
+RUN gem install jekyll-multiple-languages -v 1.0.11
+RUN gem install rouge -v 3.0.0

http://git-wip-us.apache.org/repos/asf/kylin/blob/ebd561c4/website/Makefile
----------------------------------------------------------------------
diff --git a/website/Makefile b/website/Makefile
new file mode 100644
index 0000000..1b59583
--- /dev/null
+++ b/website/Makefile
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+docker.build:
+	docker build -f Dockerfile -t kylin-document:latest .
+
+document.build:
+	docker run --volume="$(shell pwd):/srv/jekyll" --rm -it kylin-document:latest jekyll build
+
+runserver:
+	docker run --volume="$(shell pwd):/srv/jekyll" -p 4000:4000 --rm -it kylin-document:latest jekyll server --watch
+
+clean:
+	rm -rf _site