Commit 1248b509 authored by Jordi Masip's avatar Jordi Masip

Afegit .gitlab-ci i Dockerfile per generar el PDF

parent 5cb9423e
Pipeline #994 failed with stages
in 15 minutes and 16 seconds
job1:
stage: build
script:
- docker build -t latex .
tags:
- shell-dockerized
job2:
stage: generate_pdf
script:
- docker run -v `pwd`:/data -t latex dockerentry.sh tfg
artifacts:
paths:
- tfg.pdf
tags:
- shell-dockerized
stages:
- build
- generate_pdf
FROM ubuntu:14.04
RUN apt-get update; \
apt-get install -y texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-pictures \
pgf \
texlive-science \
texlive-latex-extra \
biber \
texlive-bibtex-extra \
texlive \
texlive-generic-extra \
texlive-lang-spanish \
tex-gyre \
texlive-fonts-extra \
auctex \
make \
git
RUN git clone https://gitlab.jmr.cat/masipcat/latexbits.git && \
cd latexbits && \
make && \
mkdir -p /data
COPY dockerentry.sh /bin/dockerentry.sh
WORKDIR /data
CMD /bin/bash
#!/bin/sh
pdflatex -interaction=nonstopmode $1.tex
biber $1
pdflatex -interaction=nonstopmode $1.tex
exit $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment