Bundle SVG Generator updated
Marco Ceppi
marco.ceppi at canonical.com
Thu Dec 1 02:37:11 UTC 2016
Hey everyone,
A while ago I built a small web app that you could feed raw bundle.yaml
files to and get back SVG images of the deployment like you would in the
Charm Store or Juju GUI. This was built for things like Juju Benchmarking
which shows an image representing the Juju deployment under test. Now it's
become a resource for those building slides, presentations, blog posts, and
readme files. However, SVG is not the most approachable format for some of
these new use cases.
As a result of this, I've added a raster converter as part of the
application making bundle.yaml and transform them into transparent PNGs,
PDF, or XML. The service will continue to default to SVG.
Here's a few live examples:
PNG: svg.juju.solutions/?bundle-file=https://[snip]/bundle.yaml&output=png
<http://svg.juju.solutions/?bundle-file=https://raw.githubusercontent.com/marcoceppi/bundle-observable-kubernetes/8681c21a5592806ea90fc56825eee488ac0541d1/bundle.yaml&output=png>
PDF: svg.juju.solutions/?bundle-file=https://[snip]/bundle.yaml&output=pdf
<http://svg.juju.solutions/?bundle-file=https://raw.githubusercontent.com/marcoceppi/bundle-observable-kubernetes/8681c21a5592806ea90fc56825eee488ac0541d1/bundle.yaml&output=pdf>
The landing page has been updated to include a quick submission form, no
more need to hack URLs manually. https://svg.juju.solutions
Finally, this is an open source project with an accompanying charm:
* https://github.com/marcoceppi/svg.juju.solutions
* https://github.com/marcoceppi/layer-charmsvg
* https://jujucharms.com/u/marcoceppi/charm-svg
The site is, of course, deployed and managed by Juju.
Thanks,
Marco Ceppi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20161201/e4180302/attachment.html>
More information about the Juju-dev
mailing list