From db8bafa349323db53abb37d520842c19a0e05a10 Mon Sep 17 00:00:00 2001 From: Fred Pauchet Date: Sat, 10 Sep 2022 14:26:00 +0200 Subject: [PATCH] Fix docker file to correctly build image --- Dockerfile | 6 +++++- README.md | 30 +++++------------------------- glossary.tex | 0 main.tex | 0 quotes.adoc | 0 5 files changed, 10 insertions(+), 26 deletions(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 glossary.tex mode change 100644 => 100755 main.tex mode change 100644 => 100755 quotes.adoc diff --git a/Dockerfile b/Dockerfile index 3088190..b564e0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,11 @@ FROM miktex/miktex LABEL Description="Docker container from MiKTeX, Ubuntu 20.04, with Pygments" Version="1.0" -RUN apt update && apt install python3-pip -y && pip install pygments +RUN rm /etc/apt/sources.list.d/miktex.list + +RUN apt-get update +RUN apt-get install python3-pip -y +RUN pip install pygments WORKDIR /miktex/work diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 56e5f7e..1e831d6 --- a/README.md +++ b/README.md @@ -2,30 +2,10 @@ [![Build Status](https://drone.grimbox.be/api/badges/fred/gwift-book/status.svg)](https://drone.grimbox.be/fred/gwift-book) -Ce livre peut être compilé avec [AsciiDoctor](https://asciidoctor.org/). +Ce livre peut être compilé avec une image Docker personnalisée, basée sur Miktex. +Pygments est également installé. +Elle peut être compilée avec Docker ou Podman, grâce à l'une des commandes suivantes: +* `docker build - < Dockerfile` +* `docker build .` -## Dépendances - -```bash -$ gem install asciidoctor-pdf --pre -$ gem install asciidoctor-bibtex -$ gem install rouge -``` - -## Conversion en PDF - -```bash -asciidoctor -a rouge-style=monokai -a pdf-themesdir=resources/themes -a pdf-theme=gwift main.adoc -t -r asciidoctor-diagram - -asciidoctor-pdf -a pdf-themesdir=resources/themes -a pdf-theme=gwift main.adoc -t -r asciidoctor-diagram -``` - -## Image Docker - -L'image Docker utilisée par Drone est [celle-ci](https://github.com/asciidoctor/docker-asciidoctor). -Elle convient tout ce qu'il faut pour compiler correctement le document en PDF (asciidoctor-pdf, asciidoctor-bibtex, ...). - -## Erreurs connues - -Si `asciidoctor` n'est pas dans le PATH malgré son installation, on peut le trouver grâce à la commande `gem env`, puis à réutiliser (ou à modifier le fichier `.bash_profile` ou `.profile`). diff --git a/glossary.tex b/glossary.tex old mode 100644 new mode 100755 diff --git a/main.tex b/main.tex old mode 100644 new mode 100755 diff --git a/quotes.adoc b/quotes.adoc old mode 100644 new mode 100755