changeset 0:95eafbd91f41

add dockerfile
author akahori
date Fri, 22 Mar 2019 01:59:33 +0900
parents
children f3fc48fa7287
files .hgignore Dockerfile README.md
diffstat 3 files changed, 48 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Fri Mar 22 01:59:33 2019 +0900
@@ -0,0 +1,5 @@
+syntax: glob
+**/*.html
+**/*DS_Store
+**/s6
+**/scripts
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile	Fri Mar 22 01:59:33 2019 +0900
@@ -0,0 +1,16 @@
+FROM alpine:3.9
+
+# slideshow 4.1.0 is latest now
+RUN apk add --update --no-cache ruby ruby-json ruby-bigdecimal ruby-etc \
+         mercurial &&\
+         gem install -N slideshow -v 4.1.0 && \ 
+         mkdir -p ~/.slideshow/templates &&\
+         hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/anatofuz/slideshow-s6cr/ ~/.slideshow/templates &&\
+         apk del mercurial
+
+WORKDIR /slideshow
+
+# [comb cmd with entorypoint](https://qiita.com/hihihiroro/items/d7ceaadc9340a4dbeb8f)
+
+ENTRYPOINT ["slideshow", "build", "-t", "s6cr"]
+CMD ["README.md"]
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Fri Mar 22 01:59:33 2019 +0900
@@ -0,0 +1,27 @@
+title: README.md
+author: kiichi aka
+profile: Ryukyu Concurrency Reliance Lablatory
+lang: Japanese
+code-engine: coderay
+
+# What This
+これは, markdownから並列信頼研のロゴが入ったスライドを生成するdockerです. 
+
+This is a docker that generates a slide with the Concurrency Reliance Lab logo from markdown.
+
+# How Use
+dockerをbuildします.
+
+Build docker.
+```
+docker build -t slide_docker . 
+```
+
+buildが成功したら次のコマンドを使うことで, カレントディレクトリにhtml, pdf.htmlが生成されます.
+
+If build is successful, using following command will generate html and pdf.html in the current directory.
+
+```
+docker run --rm -v $PWD:/slideshow slide_docker:latest 
+```
+