CodeCompass icon indicating copy to clipboard operation
CodeCompass copied to clipboard

Linux deb packaging

Open barnabasdomozi opened this issue 1 year ago • 3 comments

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).

barnabasdomozi avatar Oct 24 '24 13:10 barnabasdomozi

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

zporky avatar Oct 24 '24 17:10 zporky

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

barnabasdomozi avatar Oct 28 '24 11:10 barnabasdomozi

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.

mcserep avatar Oct 29 '24 14:10 mcserep