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