From c11f4514890720ced197a869dc9789f8259cbb75 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Sun, 6 Oct 2024 23:45:49 +0100 Subject: [PATCH] switch to kingosticks repo but make configurable --- Makefile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index da49bf5..01804cf 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ endif build: docker-build build-armhf build-arm64 build-x86_64 build-%: - docker run ${GST_PLUGINS_RS_MOUNT} -v .:${WORKDIR}:z --workdir ${WORKDIR} ${REPO}/${IMAGE}:${VERSION} /bin/bash entrypoint.sh $* ${PLUGIN} + docker run ${GST_PLUGINS_RS_MOUNT} -v .:${WORKDIR}:z --workdir ${WORKDIR} -e GST_GIT_REPO -e GST_GIT_BRANCH ${REPO}/${IMAGE}:${VERSION} /bin/bash entrypoint.sh $* ${PLUGIN} docker-build: docker build --tag ${REPO}/${IMAGE}:${VERSION} --file Dockerfile . diff --git a/entrypoint.sh b/entrypoint.sh index 5047962..b1ba11f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,8 +9,8 @@ function log() { printf "%${WIDTH}s\n" | tr " " "*" } -GST_GIT_REPO=https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git -GST_GIT_BRANCH=main +GST_GIT_REPO="${GST_GIT_REPO:-https://gitlab.freedesktop.org/kingosticks/gst-plugins-rs.git}" +GST_GIT_BRANCH="${GST_GIT_BRANCH:-main}" GST_SRC_DIR=gst-plugins-rs/$2 case $1 in