docker-diagrams
docker-diagrams copied to clipboard
Support use of custom node
because the file is cat
ed, custom resources cannot be used easily
https://diagrams.mingrammer.com/docs/nodes/custom
@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
That will only pass in the python file only right? If there are custom resources/assets, those will not render.