/pandockerize

Ubuntu Trusty Build of Pandoc

Primary LanguageDockerfileMIT LicenseMIT

Pandockerize

Licence


Pandoc Docker Image built with Ubuntu Trusty. Available on Github and Docker Hub.




Basic Usage

  • Build Docker Image using Dockerfile
    git clone https://github.com/FatihBozik/pandockerize.git
    cd pandockerize && docker build -t bozikfatih/pandoc .

  • Run container from the built image.

    alias pandoc='docker run -ti \
                             --name pandoc \
                             --rm -v ${PWD}:/source \
                             --rm -v /home/fatihbozik/.local/share/fonts:/usr/local/share/fonts \
                             --rm bozikfatih/pandoc'
    $ pandoc -v
    pandoc 2.1.3
    Compiled with pandoc-types 1.17.4.2, texmath 0.10.1.1, skylighting 0.7.0.2
    Default user data directory: /root/.pandoc
    Copyright (C) 2006-2018 John MacFarlane
    Web:  http://pandoc.org
    This is free software; see the source for copying conditions.
    There is no warranty, not even for merchantability or fitness
    for a particular purpose.

  • To bash into ubuntu container
    $ docker run -ti \
               --entrypoint "/bin/bash" \
               --name pandoc \
               --rm -v ${PWD}:/source \
               --rm -v /home/fatihbozik/.local/share/fonts:/usr/local/share/fonts \
               --rm bozikfatih/pandoc
    root@c30becbd8390:/source#