libwebrtc-builder-images

May 31, 2025 ยท View on GitHub

Publish Docker Image pre-commit License

libwebrtc-builder-images

Docker image with all dependencies to build Google's libwebrtc from source. Suitable for CI pipelines or local development.

Getting Started

Building libwebrtc for Android

  1. Use the following commands to run a Docker image for libwebrtc for Android.

    docker container run --rm -it ghcr.io/casl0/libwebrtc-builder/ubuntu
    
  2. Build libwebrtc for Android inside the container.

    fetch --nohooks webrtc_android
    gclient sync
    cd src
    ./build/install-build-deps.sh
    tools_webrtc/android/build_aar.py
    

Building libwebrtc for Linux

  1. Use the following commands to run a Docker image for libwebrtc for Linux.

    docker container run --rm -it ghcr.io/casl0/libwebrtc-builder/ubuntu
    
  2. Build libwebrtc for Linux inside the container.

    fetch --nohooks webrtc
    gclient sync
    cd src
    ./build/install-build-deps.sh
    gn gen out/Default
    autoninja -C out/Default
    

Building libwebrtc for Windows

  1. Use the following commands to run a Docker image for libwebrtc for Windows.

    docker container run --rm -it ghcr.io/casl0/libwebrtc-builder/windows
    
  2. Build libwebrtc for Windows inside the container.

    # WORKAROUND: Because the owner of C:\depot_tools is NT AUTHORITY\SYSTEM
    icacls "C:\depot_tools" /setowner ContainerAdministrator /T
    fetch --nohooks webrtc
    gclient sync
    cd src
    gn gen out/Default
    autoninja -C out/Default
    

Available Images

ImagePurpose
ghcr.io/casl0/libwebrtc-builder/ubuntuBuilding libwebrtc for Android or Linux
ghcr.io/casl0/libwebrtc-builder/windowsBuilding libwebrtc for Windows