Fix docker file to correctly build image
This commit is contained in:
parent
af8b7c41b0
commit
db8bafa349
|
@ -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
|
||||
|
||||
|
|
|
@ -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`).
|
||||
|
|
Loading…
Reference in New Issue