Skip to content

Commit

Permalink
Unificar scripts de instalação #169
Browse files Browse the repository at this point in the history
  • Loading branch information
edusantana committed Jun 16, 2020
1 parent 778fdaf commit 1acbd61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:
script: bin/build-docker.sh && bin/deploy-docker.sh $TRAVIS_TAG
on:
tags: true
after_failure:
after_script:
- cat /root/.TinyTeX/texmf-var/web2c/tlmgr.log
44 changes: 11 additions & 33 deletions containers/ruby-latex-pandoc.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,23 @@ LABEL maintainer="[email protected]"
# Tentamos seguir as melhores práticas:
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

RUN apt-get update && apt-get install -y -qq \
build-essential \
fontconfig \
locales \
pdfgrep \
poppler-utils \
unzip \
wget
WORKDIR /tmp
COPY bin/instaladores/dependencias_execucao_install.sh \
bin/instaladores/pandoc_install.sh \
bin/instaladores/tinytex_install.sh \
.

# Instala tinytex (/root/.TinyTex)
RUN wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
ENV PATH="/root/bin:${PATH}"
RUN apt-get update && dependencias_execucao_install.sh

# instala bibliotecas para o abntex2/limarka
RUN tlmgr install \
abntex2 \
babel-portuges \
bookmark \
enumitem \
epstopdf-pkg \
ifetex \
lastpage \
lipsum \
listings \
ltcaption \
memoir \
microtype \
pdflscape \
pdfpages \
textcase \
xcolor
# Instala tinytex (/root/.TinyTex)
# e bibliotecas para o abntex2/limarka
RUN bin/instaladores/tinytex_install.sh
ENV PATH="/root/bin:~/.TinyTeX/bin/x86_64-linux:${PATH}"

# Configurando o idioma português #175: https://hub.docker.com/_/debian/#locales
RUN rm -rf /var/lib/apt/lists/* \
&& localedef -i pt_BR -c -f UTF-8 -A /usr/share/locale/locale.alias pt_BR.UTF-8
ENV LANG pt_BR.UTF8

# Instalação do pandoc
WORKDIR /tmp
RUN wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb \
&& dpkg -i pandoc-*.deb \
&& rm pandoc-*.deb
RUN pandoc_install.sh

0 comments on commit 1acbd61

Please sign in to comment.