Skip to content

Support of dbml with asciidoctor-diagram and docker ? #506

Description

@pvandenbroucke

Hello,

I'm trying to generate the documentation (pdf and html) with asciidoctor/docker-asciidoctor.

Everything is working well except the generation of the dbml graphes. These diagrams seem supported by asciidoctor-diagram.

The used docker compose is quite simple :

services:

asciidoctor-pdf:
image: asciidoctor/docker-asciidoctor
volumes:
- ./src/main/asciidoc:/documents
- ./target/pdf:/output
entrypoint: asciidoctor-pdf -D /output -a imagesdir=resources/images -a pdf-theme=custom -a pdf-themesdir=resources/themes -a pdf-fontsdir=resources/fonts -r asciidoctor-diagram *.adoc

asciidoctor-html:
image: asciidoctor/docker-asciidoctor
volumes:
- ./src/main/asciidoc:/documents
- ./target/html:/output
entrypoint: asciidoctor -v -D /output -a data-uri -a imagesdir=resources/images -r asciidoctor-diagram *.adoc

When I try to generate the documentation, it complains about a missing dbml-renderer in the path. Below, you can find the output of the command :

asciidoctor-html-1 | asciidoctor: DEBUG: Finding 'dbml-renderer' in attributes
asciidoctor-html-1 | asciidoctor: DEBUG: Finding 'dbml-renderer' in environment
asciidoctor-html-1 | asciidoctor: ERROR: _chapters/database.dbml: line 2: Failed to generate image: Could not find the 'dbml-renderer' executable in PATH; add it to the PATH or specify its location using the 'dbml-renderer' document attribute
asciidoctor-html-1 exited with code 0

I did some unsuccessful tries. Do I need to install it ? Can we enabled it with an extension,... ? Is that supported in the docker image ?

Thanks in advance for your help,

Pierrick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions