docker-diagrams icon indicating copy to clipboard operation
docker-diagrams copied to clipboard

Support use of custom node

Open fawaf opened this issue 1 year ago • 2 comments

because the file is cated, custom resources cannot be used easily

https://diagrams.mingrammer.com/docs/nodes/custom

fawaf avatar Sep 13 '23 01:09 fawaf

@fawaf you can override the entrypoint and mount a directory to pick on a file directly, rather than pipe it in. My setup for a small repo:

# docker-compose.yml
services:
  diagrams:
    image: gtramontina/diagrams:0.23.3
    restart: 'no'
    volumes:
      - ./:/out
    entrypoint: ['python', '${FILE}']

then run:

FILE=path/to/your/file.py docker-compose up 

davidverweij avatar Feb 24 '24 10:02 davidverweij

That will only pass in the python file only right? If there are custom resources/assets, those will not render.

fawaf avatar Feb 25 '24 06:02 fawaf