From 75031b40381559877afb15fb89d2143bae23612e Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Tue, 25 Nov 2014 20:44:30 +0100 Subject: [PATCH] jekyll --- README.md | 3 ++- jekyll/Dockerfile | 12 ++++++++++++ jekyll/README.md | 11 +++++++++++ jekyll/install.sh | 17 +++++++++++++++++ latex/README.md | 2 +- 5 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 jekyll/Dockerfile create mode 100644 jekyll/README.md create mode 100644 jekyll/install.sh diff --git a/README.md b/README.md index 2dfab0d..39438a0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ Collection of lightweight and ready-to-use docker images ## Images -* **[Latex](https://github.com/schickling/dockerfiles/tree/master/latex)** - Lightwight full texlive distribution +* **[Jekyll](https://github.com/schickling/dockerfiles/tree/master/jekyll)** - Lightweight jekyll working environment +* **[Latex](https://github.com/schickling/dockerfiles/tree/master/latex)** - Full texlive distribution * **[Mailcatcher](https://github.com/schickling/dockerfiles/tree/master/mailcatcher)** - Extra small mailcatcher image * **[NodeJS](https://github.com/schickling/dockerfiles/tree/master/nodejs)** - Minimal NodeJS + NPM image * **[Octave](https://github.com/schickling/dockerfiles/tree/master/octave)** - Lightweight ocatve development environment diff --git a/jekyll/Dockerfile b/jekyll/Dockerfile new file mode 100644 index 0000000..bf0d3ac --- /dev/null +++ b/jekyll/Dockerfile @@ -0,0 +1,12 @@ +FROM debian:wheezy +MAINTAINER Johannes Schickling "schickling.j@gmail.com" + +ENV DEBIAN_FRONTEND noninteractive + +ADD install.sh install.sh +RUN chmod +x install.sh && ./install.sh && rm install.sh + +EXPOSE 4000 +VOLUME ["/source"] +WORKDIR /source +CMD ["jekyll", "serve"] diff --git a/jekyll/README.md b/jekyll/README.md new file mode 100644 index 0000000..c5b3875 --- /dev/null +++ b/jekyll/README.md @@ -0,0 +1,11 @@ +# jekyll + +Lightweight jekyll working environment (250MB) + +## Usage + +```sh +$ docker run --rm -it -p 4000:4000 -v $(pwd):/source schickling/jekyll +``` + +Mount your local source folder to the container and serve the content. diff --git a/jekyll/install.sh b/jekyll/install.sh new file mode 100644 index 0000000..07a26f9 --- /dev/null +++ b/jekyll/install.sh @@ -0,0 +1,17 @@ +#! /bin/bash + +# exit if a command fails +set -e + +# install ruby 1.9.1 +apt-get update && apt-get install -y ruby + +# install jekyll +gem install jekyll bundler --no-ri --no-rdoc + +# cleanup package manager +apt-get autoclean && apt-get clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# prepare dir +mkdir /source diff --git a/latex/README.md b/latex/README.md index 8d6448e..2126169 100644 --- a/latex/README.md +++ b/latex/README.md @@ -1,6 +1,6 @@ # latex -Lightwight full texlive distribution +Full texlive distribution ## Usage