Ericsson / CodeCompass

CodeCompass is a software comprehension tool for large scale software written in C/C++ and Java
https://codecompass.net
GNU General Public License v3.0
521 stars 102 forks source link

Linux deb packaging #773

Open wbqpk3 opened 1 month ago

wbqpk3 commented 1 month ago

The goal of this patch is to allow users to easily install CodeCompass without compiling from source.

See doc/packaging.md for documentation.

The resulting .deb package is about 150MB in size. Runtime dependencies are always included in the package (such as ODB), but in total these only take up about 20MB in space uncompressed.

The package has been tested on a fresh Ubuntu 22.04 server image. First, the required dependencies were installed (from doc/deps.md guide), and a built codecompass.deb package. Then, it successfully parsed a C++ project and ran the webserver. It was not needed to compile ODB since it's included in the .deb package.

It's also possible to create a Linux distribution specific package such as for Ubuntu 22.04 which also pulls all the required dependencies specific to the distribution. The dependencies can be specified using PACKAGE_DEPENDS (see doc/packaging.md).

zporky commented 1 month ago

Hi This is a great achievement. Is there an installation description somewhere? gsd

wbqpk3 commented 4 weeks ago

Yes, it's documented here: https://github.com/wbqpk3/CodeCompass/blob/packaging/doc/packaging.md

mcserep commented 3 weeks ago

Related to #478, but the conclusion there was to implement either a Snapcraft or an AppImage approach as a solution. I will keep this PR open for now, but #774 seems to supersede it, so we will might not need this in the future.