Skip to content

Commit

Permalink
Update to Asciidoctor 1.5.3, minor updates and switch from GVM to SDKMan
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Scheibel committed Dec 27, 2015
1 parent 120e03d commit aef8fcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Expand Up @@ -2,36 +2,37 @@ FROM fedora:22

MAINTAINER Guillaume Scheibel <guillaume.scheibel@gmail.com>

WORKDIR /documents

ENV JAVA_HOME /jdk1.8.0_20
ENV PATH $PATH:$JAVA_HOME/bin:/fopub/bin
ENV BACKENDS /asciidoctor-backends
ENV GVM_AUTO_ANSWER true
ENV ASCIIDOCTOR_VERSION "1.5.3"

RUN yum install -y tar \
RUN dnf install -y tar \
make \
gcc \
ruby \
ruby-devel \
rubygems \
graphviz \
rubygem-nokogiri \
asciidoctor \
unzip \
findutils \
which \
wget \
python-devel \
zlib-devel \
libjpeg-devel \
&& (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 -) \
&& mkdir /fopub \
&& curl -L https://api.github.com/repos/asciidoctor/asciidoctor-fopub/tarball | tar xzf - -C /fopub/ --strip-components=1 \
&& touch empty.xml \
&& fopub empty.xml \
&& rm empty.xml \
&& gem install --no-ri --no-rdoc asciidoctor --version $ASCIIDOCTOR_VERSION \
&& gem install --no-ri --no-rdoc asciidoctor-diagram \
&& gem install --no-ri --no-rdoc asciidoctor-epub3 --version 1.0.0.alpha.2 \
&& gem install --no-ri --no-rdoc asciidoctor-pdf --version 1.5.0.alpha.7 \
&& gem install --no-ri --no-rdoc asciidoctor-epub3 --version 1.5.0.alpha.5 \
&& gem install --no-ri --no-rdoc asciidoctor-pdf --version 1.5.0.alpha.10 \
&& gem install --no-ri --no-rdoc asciidoctor-confluence \
&& gem install --no-ri --no-rdoc coderay pygments.rb thread_safe epubcheck kindlegen \
&& gem install --no-ri --no-rdoc slim \
Expand All @@ -43,11 +44,12 @@ RUN yum install -y tar \
&& easy_install seqdiag \
&& easy_install actdiag \
&& easy_install nwdiag \
&& (curl -s get.gvmtool.net | bash) \
&& echo "gvm_auto_answer=true" | tee -a /root/.gvm/etc/config \
&& /bin/bash -c "source /root/.gvm/bin/gvm-init.sh" \
&& /bin/bash -c -l gvm install lazybones
&& (curl -s get.sdkman.io | bash) \
&& /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh" \
&& /bin/bash -c "echo sdkman_auto_answer=true > ~/.sdkman/etc/config" \
&& /bin/bash -c -l "sdk install lazybones"

WORKDIR /documents
VOLUME /documents

CMD ["/bin/bash"]
3 changes: 2 additions & 1 deletion README.adoc
Expand Up @@ -5,14 +5,15 @@

This Docker container provides:

* Asciidoctor 1.5.2
* Asciidoctor 1.5.3
* Aciidoctor Diagram with Graphviz integration so you can use plantuml and graphiz diagrams
* Asciidoctor PDF (alpha)
* Asciidoctor EPUB3 (alpha)
* Source highlighting using CodeRay or Pygments
* Asciidoctor backends
* Asciidoctor-fopub
* Asciidoctor-confluence
* Lazybones (for Asciidoctor-revealjs)

== How to use it

Expand Down

0 comments on commit aef8fcd

Please sign in to comment.