Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Update bbb-webrtc-sfu packaging to include mediasoup #13451

Merged

Conversation

schrd
Copy link
Collaborator

@schrd schrd commented Oct 8, 2021

What does this PR do?

Include mediasoup in bbb-webrtc-sfu build. It ships javascript files and the worker binary

Motivation

I want @prlanzarin 's awesome media server improvements

More

Additionally this drops the npm rebuild command from the after-install script. It should not be necessary to recompile stuff during
installation. To ensure a clean node_modules directory, it will be cleaned in the before-install script. There might be left over files from previous npm reinstall calls from older BBB versions so get rid of them.

As soon as mediasoup is a production dependency in the bbb-webrtc-sfu sources, npm install can be used in production mode again

... drop build artifacts from compiling mediasoup. This reduces package
size from ~ 54 MB to ~ 12 MB.

Additionally this drops the `npm rebuild` command from the after-install
script. It should not be necessary to recompile stuff during
installation. To ensure a clean `node_modules` directory, it will be
cleaned in the before-install script.
@prlanzarin prlanzarin added this to the Release 2.4 milestone Oct 8, 2021
@prlanzarin
Copy link
Member

Thanks for the PR!

As soon as mediasoup is a production dependency in the bbb-webrtc-sfu sources, npm install can be used in production mode again

Now that RC2 is out I should be tagging a new SFU version early next week with mediasoup et al as production dependencies. So we should preferably merge this after that new tag is available imho.

Copy link
Member

@antobinary antobinary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @schrd

@antobinary
Copy link
Member

@prlanzarin we could merge now and update as the new tag becomes available. What would you prefer?

@prlanzarin
Copy link
Member

@prlanzarin we could merge now and update as the new tag becomes available. What would you prefer?

Works as long as a development build doesn't end in a 2.4 release.

@prlanzarin
Copy link
Member

prlanzarin commented Oct 13, 2021

https://github.com/bigbluebutton/bbb-webrtc-sfu/releases/tag/v2.6.0-beta.5

mediasoup et al were moved to prod dependencies in beta.5

build/packages-template/bbb-webrtc-sfu/build.sh Outdated Show resolved Hide resolved
bbb-webrtc-sfu.placeholder.sh Outdated Show resolved Hide resolved
antobinary and others added 2 commits October 14, 2021 09:17
Co-authored-by: Paulo Lanzarin <4529051+prlanzarin@users.noreply.github.com>
Co-authored-by: Paulo Lanzarin <4529051+prlanzarin@users.noreply.github.com>
@antobinary antobinary merged commit 1642582 into bigbluebutton:v2.4.x-release Oct 14, 2021
@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@antobinary antobinary changed the title Update bbb-webrtc-sfu packaging to include mediasoup build: Update bbb-webrtc-sfu packaging to include mediasoup Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants