Some of our developers has expressed an interest in being able to use PlantUML with our GitLab.
I read https://docs.gitlab.com/ee/administration/integration/plantuml.html and tried to follow the instructions for Debian/Ubuntu, but I found some problems:
-
It says to install
git-core
, that package has been renamed togit
in any reasonably new Debian/Ubuntu - that’s easy to fix, just wanted to mention it if somebody wants to use this as a starting point for updating that page -
It says to install
openjdk-7-jdk
, that package is not available on Debian Stretch (I don’t think I have any machines running Jessie around to check how it was in that) and on Ubuntu Xenial (don’t know how far back) and newer. I hope openjdk-8-jdk will work, as it’s going to run on a machine running Xenial maybe I should even try openjdk-9-jdk -
It says to install tomcat7, that package is actually available on Ubuntu Xenial, but not on Ubuntu Bionic or Debian Stretch. I hope tomcat8 will work.
-
It says that the service will be ready and listening on port 8080. Even if I didn’t make other mistakes in my test, the fact the GitLab is listening on that port will prevent tomcat from doing so. It might have been fine with GitLab 8.16 when the feature was added (according to the page), but now it seems wrong. (If I start tomcat before GitLab it might end up listening on that port, but then GitLab will probably have problems).
-
It says that I can change “these defaults” (I assume that includes what port tomcat uses) by editing
/etc/tomcat7/server.xml
, but it doesn’t say anything about what edits to make.
Has anybody managed to setup PlantUML with GitLab on a semi-recent Debian/Ubuntu and can offer any suggestions?