FROM registry.freedesktop.org/thiblahute/gst-ci/fedora-runtime # Add rpmfusion repositories and install all build dependencies of GStreamer RUN dnf builddep -y \ gstreamer1 \ gstreamer1-plugins-base \ gstreamer1-plugins-good \ gstreamer1-plugins-good-extras \ gstreamer1-plugins-ugly \ gstreamer1-plugins-ugly-free \ gstreamer1-plugins-bad-nonfree \ gstreamer1-plugins-bad-free \ gstreamer1-plugins-bad-free-extras \ gstreamer1-plugins-bad-freeworld \ gstreamer1-libav \ gstreamer1-rtsp-server \ python3-gstreamer1 \ && \ rpm -e \ gstreamer1-devel \ gstreamer1-plugins-base-devel \ && \ dnf install -y \ ccache \ gcc-c++ \ gdb \ git \ json-glib-devel \ libunwind-devel \ opencv-devel \ openjpeg2-devel \ patch \ redhat-rpm-config \ xorg-x11-server-Xvfb \ xorg-x11-server-utils \ wget \ meson && \ dnf clean all # Add the user UID:1000, GID:1000, home at /gstbuild RUN groupadd -r gstbuild -g 1000 && useradd -u 1000 -r -g gstbuild -m -d /gstbuild -s /sbin/nologin -c "Gstbuild user" gstbuild && \ chmod 755 /gstbuild # Set the working directory to gstbuild home directory WORKDIR /gstbuild # Specify the user to execute all commands below USER gstbuild # Configure git for various usage RUN git config --global user.email "gstbuild@gstreamer.net" && git config --global user.name "Gstbuild Runner"