File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-rffmpeg-setup Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 2020 echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
2121 echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
2222 # **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
23- MOD_VERSION=""
23+ MOD_VERSION=$(curl -s https://api.github.com/repos/joshuaboniface/rffmpeg/commits/master | jq -rc ".sha")
2424 echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
2525 outputs :
2626 GITHUB_REPO : ${{ steps.outputs.outputs.GITHUB_REPO }}
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3+ FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
4+
5+ ARG MOD_VERSION
6+
7+ RUN \
8+ echo "**** grab rffmpeg ****" && \
9+ mkdir -p /root-layer/usr/local/bin/ && \
10+ MOD_VERSION=${MOD_VERSION:-master} && \
11+ curl -fo \
12+ /root-layer/usr/local/bin/rffmpeg -L \
13+ "https://raw.githubusercontent.com/joshuaboniface/rffmpeg/${MOD_VERSION}/rffmpeg" && \
14+ chmod +x /root-layer/usr/local/bin/rffmpeg
15+
16+ # copy local files
17+ COPY root/ /root-layer/
18+
19+ # # Single layer deployed image ##
320FROM scratch
421
522LABEL maintainer="junkman690"
623
7- # copy local files
8- COPY root/ /
24+ # Add files from buildstage
25+ COPY --from=buildstage / root-layer / /
Original file line number Diff line number Diff line change 1313 cp /defaults/rffmpeg.yml.sample /config/rffmpeg/rffmpeg.yml
1414fi
1515
16- #Grab rffmpeg
17- mkdir -p /usr/local/bin/
18- echo "**** Grabbing rffmpeg from upstream ****"
19- rm -rf /usr/local/bin/rffmpeg
20- curl -L -o /usr/local/bin/rffmpeg https://raw.githubusercontent.com/joshuaboniface/rffmpeg/master/rffmpeg
21- chmod +x /usr/local/bin/rffmpeg
22-
2316##Update rffmpeg.yml
2417sed -i 's~#persist: "/run/shm"~persist: "/dev/shm"~' /config/rffmpeg/rffmpeg.yml
2518sed -i 's~#state: "/var/lib/rffmpeg"~state: "/config/rffmpeg"~' /config/rffmpeg/rffmpeg.yml
You can’t perform that action at this time.
0 commit comments