Skip to content

Instantly share code, notes, and snippets.

@darfink
Created October 27, 2023 16:04
Show Gist options
  • Save darfink/82d1eecb04e7b506389e551563288f52 to your computer and use it in GitHub Desktop.
Save darfink/82d1eecb04e7b506389e551563288f52 to your computer and use it in GitHub Desktop.
Dockerfile for building GStreamer from source (gst-plugins-base)
# Use Ubuntu as the base image
FROM ubuntu:23.04
# Update package lists and install necessary dependencies
RUN apt-get update && \
apt-get install -y \
build-essential \
libgstreamer1.0-dev \
meson \
ninja-build \
wget \
gstreamer1.0-tools \
git
# Create a working directory
WORKDIR /app
# Clone the GStreamer repository
RUN git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
RUN git config --global user.name approved_user && git config --global user.email approved@corp.com
# Enter the gstreamer directory
WORKDIR /app/gstreamer
RUN git checkout 1.22.2 && git cherry-pick ca337002f17a676f208b3e9c19fd3da95c7b1831
WORKDIR /app/gstreamer/subprojects/gst-plugins-base/build
RUN meson setup .. \
--buildtype=release \
-Dpackage-origin=https://gitlab.freedesktop.org/gstreamer/gstreamer.git \
-Dpackage-name="GStreamer 1.22.2 CC"
RUN ninja # && ninja install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment