Last active
August 29, 2015 14:06
-
-
Save gscheibel/53f5c566619e1b998526 to your computer and use it in GitHub Desktop.
asciidoctor dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fedora | |
MAINTAINER Guillaume Scheibel <guillaume.scheibel@gmail.com> | |
#Installing JDK because asciidoctor-diagram is reyling on Java classses | |
RUN (curl -s -k -L -C - -b "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz | tar xfz -) | |
ENV JAVA_HOME /jdk1.8.0_20 | |
ENV PATH $PATH:$JAVA_HOME/bin | |
#Installing ruby and asciidoctor environment | |
#gcc is required because of rjb (asciidoctor-diagram dependency) | |
RUN yum install -y make gcc ruby ruby-devel rubygems graphviz && \ | |
gem install asciidoctor asciidoctor-diagram && \ | |
gem install --pre asciidoctor-pdf && \ | |
gem install coderay pygments.rb && \ | |
mkdir /documents | |
WORKDIR /documents | |
VOLUME /documents | |
CMD ["/bin/bash"] | |
#To build the container use: create a Dockerfile, cd in its directory and run | |
# docker build -t gscheibel/asciidoctor . | |
#To use it: | |
# docker run -it -v ~/:/documents/ gscheibel/asciidoctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment