Skip to content

Commit

Permalink
Update Dockerfile and start.sh to support project branches and custom…
Browse files Browse the repository at this point in the history
… versions.
  • Loading branch information
AlperShal committed Jun 1, 2024
1 parent f8a4a74 commit 082c6d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM debian:stable-slim

ENV JELLYFIN_WEB_BRANCH=release-10.9.z
ENV JELLYFIN_TIZEN_BRANCH=master
ENV ACCEPT_TIZEN_STUDIO_LICENSE=0
ENV CertPass=12345
ENV TVIpAddress=192.168.1.2
Expand Down
26 changes: 20 additions & 6 deletions Docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,27 @@ fi

export PATH="${PATH}:/home/builder/tizen-studio/tools:/home/builder/tizen-studio/tools/ide/bin"

cd /home/builder/jellyfin-web
echo "Pulling jellyfin-web!"
git pull
if [ $JELLYFIN_WEB_BRANCH == "_SKIP_" ]
then
echo "[jellyfin-tizen-builder] Skipping 'Pulling jellyfin-web!' step as JELLYFIN_WEB_BRANCH is set to $JELLYFIN_WEB_BRANCH."
else
cd /home/builder/jellyfin-web
echo "Pulling jellyfin-web:$JELLYFIN_WEB_BRANCH!"
git fetch
git checkout -b $JELLYFIN_WEB_BRANCH origin/$JELLYFIN_WEB_BRANCH
git pull
fi

cd /home/builder/jellyfin-tizen
echo "[jellyfin-tizen-builder] Pulling jellyfin-tizen!"
git pull
if [ $JELLYFIN_TIZEN_BRANCH == "_SKIP_" ]
then
echo "[jellyfin-tizen-builder] Skipping 'Pulling jellyfin-tizen!' step as JELLYFIN_TIZEN_BRANCH is set to $JELLYFIN_TIZEN_BRANCH."
else
cd /home/builder/jellyfin-tizen
echo "Pulling jellyfin-tizen:$JELLYFIN_TIZEN_BRANCH!"
git fetch
git checkout -b $JELLYFIN_TIZEN_BRANCH origin/$JELLYFIN_TIZEN_BRANCH
git pull
fi

cd /home/builder/jellyfin-web
echo "[jellyfin-tizen-builder] Installing jellyfin-web dependencies!"
Expand Down

0 comments on commit 082c6d7

Please sign in to comment.