From 2210bd70a245a4d703587ac881dba962891bd446 Mon Sep 17 00:00:00 2001 From: Walter Schulze Date: Thu, 25 Jun 2015 13:49:30 +0200 Subject: [PATCH] fixed Dockerfile --- Dockerfile | 19 ++++++++++++++++ build.sh | 1 + contrib/Dockerfile | 28 ------------------------ contrib/getFiraFont.sh => getFiraFont.sh | 0 4 files changed, 20 insertions(+), 28 deletions(-) create mode 100644 Dockerfile delete mode 100644 contrib/Dockerfile rename contrib/getFiraFont.sh => getFiraFont.sh (100%) mode change 100644 => 100755 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e93527e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ + +## Contributed by Walter Schulze (@awalterschulze) +## Simplified by Dirk Eddelbuettel (@eddelbuettel) + +FROM ubuntu:trusty +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -q \ + && apt-get install -qy \ + gnuplot \ + python-pygments \ + texlive-full \ + wget + +ADD ./getFiraFont.sh ./getFiraFont.sh +RUN ./getFiraFont.sh + +WORKDIR /data +VOLUME ["/data"] diff --git a/build.sh b/build.sh index acf80b9..7733e5f 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/bin/sh set -xe +xelatex mtheme.ins xelatex -shell-escape demo.tex xelatex -shell-escape demo.tex diff --git a/contrib/Dockerfile b/contrib/Dockerfile deleted file mode 100644 index c20a947..0000000 --- a/contrib/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ - -## Contributed by Walter Schulze (@awalterschulze) -## Simpliefied by Dirk Eddelbuettel (@eddelbuettel) - -FROM ubuntu:trusty -ENV DEBIAN_FRONTEND noninteractive - -RUN apt-get update -q \ - && apt-get install -qy \ - gnuplot \ - python-pygments \ - texlive-full \ - wget - -RUN cd /tmp \ - && mkdir -p /usr/share/fonts/truetype/FiraSans \ - && mkdir -p /usr/share/fonts/opentype/FiraSans \ - && wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip" \ - && wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip" \ - && unzip FiraSans3106.zip \ - && unzip FiraMono3106.zip \ - && cp Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/ \ - && cp Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/ \ - && fc-cache -f -v \ - && rm -rf Fira* - -WORKDIR /data -VOLUME ["/data"] diff --git a/contrib/getFiraFont.sh b/getFiraFont.sh old mode 100644 new mode 100755 similarity index 100% rename from contrib/getFiraFont.sh rename to getFiraFont.sh