Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to use graphviz when using bitbucket pipelines?

orenbenkiki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2018

It seems graphviz (specifcally, `dot`) is not installed by default. Is there an easy way to request it be available for my pipeline? I am using `sphinx.ext.graphviz` to display some diagrams which are generated directly from my code, to visualize some processing details.

1 answer

0 votes
Graham Gatus
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2018

The default docker image we use in pipelines is based on Ubuntu, and you can install additional tools required in your pipeline using 'apt-get', Ubuntu's packager manager tool.

e.g This snippet should install graphviz and dot:

pipelines: 
default:
-
step:
script:
-
apt-get update && apt-get install -y graphviz
-
dot -V

I'm not familiar with graphviz, however I did find some instructions for installing additional related tools at https://askubuntu.com/questions/917030/how-to-install-pydot-and-graphviz

Cheers

Graham

orenbenkiki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2018

Thanks, this solved my issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events