bigbluebutton-Github/build
prlanzarin 1c55cd9b5c build(freeswitch): add mod_audio_fork and libwebsockets
Add mod_audio_fork to FreeSWITCH's build alongside libwebsockets
(which mod_audio_fork depends on).

mod_audio_fork is used by the built in transcription feature as
a way to extract L16 streams from FreeSWITCH via WebSockets for further
processing by arbitrary transcription servers.

For full details on mod_audio_fork itself, please check drachtio's
source repo: github.com/drachtio/drachtio-freeswitch-modules.git

A few cautionary tales about this one:
  - The new patch (mod_audio_fork_build.patch) guarantees libwebsockets
    is properly linked to FreeSWITCH and that mod_audio_fork is built as
    well. That's because mod_audio_fork is not an upstream module.
  - The patch _may_ introduce conflicts on FreeSWITCH bumps more easily
    than the other patches we have. They shouldn't be too hard to adapt,
    though.
  - There's fine tuning to be done to FreeSWITCH's unit file regarding
    mod_audio_fork's capabilities. Again: check drachtio's repo.
2022-12-23 17:38:40 -03:00
..
packages-template build(freeswitch): add mod_audio_fork and libwebsockets 2022-12-23 17:38:40 -03:00
.gitignore
bbb-ci.png
change_detection.sh use placeholder files during change detection 2021-10-19 21:06:09 +00:00
deb-helper.sh chore: net-tools -> iproute2 2022-03-22 16:30:43 +01:00
get_external_dependencies.sh
opts-global.sh
package-names.inc.sh Merge remote-tracking branch 'upstream/v2.6.x-release' into demo-page-removal 2022-07-13 11:16:51 -03:00
push_packages.sh
README.md
setup-inside-docker.sh package build scripts - calculate GIT_REV and COMMIT_DATE outside the 2022-07-07 18:38:49 -04:00
setup.sh package build scripts - calculate GIT_REV and COMMIT_DATE outside the 2022-07-07 18:38:49 -04:00

build

build scripts for packaging bigbluebutton.

This directory contains scripts for the new open-source Gitlab-CI based build system, which shall replace the legacy non-public Jenkins based process. The build scripts in packages-template have been adapted from the old system, and still have room for improvement / cleanup.

build locally

You can build packages locally. Docker is required to be installed on your machine.

First, get the external dependencies (this can be migrated to git submodules once the legacy CI system has been retired):

./build/get_external_dependencies.sh

For example, to build the bbb-html5 package, run the following command from the repository's root directory.

./build/setup.sh bbb-html5

The package will be put into the artifacts/ subdirectory.

Note that this will pull in the required Docker image from a remote server. If you want to build the container yourself, get the Dockerfile from the repo, build it locally and change the image url in .gitlab-ci.yml to the locally built one.

build using CI

Diagram showing the CI build process

The CI is defined by the file .gitlab-ci.yml in the root directory of this repo.

In CI, the build process is done in four stages:

  1. The first stage determines the last commit that changed each package, and all commits since that made no change to the package. The debian repository server is then queried, to see whether a package is already available for any of those commits. If yes, the package version is written to a file called packages-to-skip.txt.
  2. The second steps pulls in external dependencies. This could be later changed to use git submodules. As of now, that would break the old CI, therefore this step exists.
  3. Debian packages are built in parallel for each component. Packages listed in packages-to-skip.txt are not build (see stage 1). A bigbluebutton meta-package is also created. This package depends on the exact versions of the other core packages, e.g. either packages with the same commit hash (for those that have been built), or the respective version listed in packages-to-skip.txt.
  4. Packages are uploaded to the debian repository server. The endpoint on the repo server also receives the branch name, and generates/updates that branch's repository with all relevant (uploaded and reused) packages.

The repo server software can be found at https://gitlab.senfcall.de/senfcall-public/ci-repo-upload .