Comments (3)
@babaorum @patricknelson Thank you for providing your Dockerfile / Docker image!
This sure looks like a good starting point if you want to use graph-composer within a Docker container. I agree that providing this especially for the graph-composer export
command can make a lot of sense, but I wonder how much sense the graph-composer show
command makes within a container.
I don't think there's anything else that needs to be done in this repository, except perhaps adding a link to the README somewhere? PRs are very much welcome!
I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can always reopen this 👍
from graph-composer.
Thanks by the way for making this tool! 😄
Right. I guess my main issue was encapsulating the various dependencies (basically just graphviz
and ttf-freefont
) and then allowing me to run whatever version of PHP I needed in order to be relatively consistent with (or even isolated from) the actual application install, depending on the situation. Plus, running PHP on my host machine is never something I do anymore (everything is containerized or at least virtualized).
Of course in those situations, the show
command will not work considering those types of environments are highly unlikely to have any sort of GUI or desktop environment installed.
from graph-composer.
I actually just happened to build this myself. It's already on Docker Hub if you want to use it right now:
- Docker Hub: https://hub.docker.com/r/patricknelson/graph-composer-docker
- Source: https://github.com/patricknelson/graph-composer-docker
# Generic (replace LOCAL_PATH)
docker run -it --rm -v LOCAL_PATH:/graph-composer patricknelson/graph-composer-docker sh
# ... then run graph-composer.phar as usual...
graph-composer.phar export > graph.svg
I'm lazy, so I have some shortcuts for LOCAL_PATH
😄
# Relative to current directory (MacOS/Linux)
docker run -it --rm -v "$(pwd):/graph-composer" patricknelson/graph-composer-docker sh
# Relative to current directory (Windows with cygwin)
docker run -it --rm -v "$(cygpath -am .):/graph-composer" patricknelson/graph-composer-docker sh
p.s. That version above may not work for binary formats like PNG since the fonts cannot be rendered without the ttf-freefont
package also present in the container (I tried in mine and just got squares/boxes). See my Dockerfile.
from graph-composer.
Related Issues (20)
- Invalid handling of not lowercase package names. HOT 1
- Support running on MS Windows
- Add option to write exported image to STDOUT instead of file HOT 2
- Improve GraphViz support for MS Windows HOT 2
- Unable to run "graph-composer" (installed as a global composer package) HOT 3
- Does not work after 'composer global require clue/graph-composer' HOT 1
- Export graph with links HOT 1
- composer install doesn't work HOT 5
- Release 1.0.0 is missing version HOT 1
- Update symfony/console HOT 4
- Add option to limit depth of the graph HOT 4
- What about left to right direction? (horizontal layout) HOT 1
- What about only draw the dependencies of a sub package in a project? HOT 2
- Add support for imagemap output HOT 1
- Compatibility with composer v2 HOT 1
- Highlight outdated packages (`--outdated`)
- Unable to invoke "dot" to create image file HOT 1
- PHP 8+ support HOT 1
- Unable to invoke "dot" to create image file (code 127) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graph-composer.