Skip to content

Commit

Permalink
trguing mods
Browse files Browse the repository at this point in the history
  • Loading branch information
azlux committed Apr 30, 2024
1 parent 5ed37b6 commit 35635aa
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BuildImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
ENDPOINT: "linuxserver/mods" #don't modify
BASEIMAGE: "transmission" #replace
MODNAME: "transmission-web-control" #replace
MODNAME: "transmission-trguing" #replace

jobs:
set-vars:
Expand All @@ -20,7 +20,7 @@ jobs:
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
MOD_VERSION=$(curl -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | jq -rc ".tag_name")
MOD_VERSION=$(curl -s https://api.github.com/repos/openscopeproject/TrguiNG/releases/latest | jq -rc ".tag_name")
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
outputs:
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
Expand Down
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
ARG MOD_VERSION

RUN \
echo "**** grab transmission-web-control ****" && \
echo "**** grab transmission trguing ****" && \
mkdir -p /root-layer/themes && \
if [ -z ${MOD_VERSION} ]; then \
MOD_VERSION=$(curl -s "https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest" \
MOD_VERSION=$(curl -s "https://api.github.com/repos/openscopeproject/TrguiNG/releases/latest" \
| jq -rc ".tag_name"); \
fi && \
curl -o \
/tmp/transmission-web-control.tar.gz -L \
"https://github.com/transmission-web-control/transmission-web-control/releases/download/${MOD_VERSION}/dist.tar.gz" && \
mkdir -p /root-layer/themes/transmission-web-control && \
tar xzf \
/tmp/transmission-web-control.tar.gz -C \
/root-layer/themes/transmission-web-control --strip-components=2
/tmp/trguing-web.zip -L \
"https://github.com/openscopeproject/TrguiNG/releases/download/${MOD_VERSION}/trguing-web-${MOD_VERSION}.zip" && \
mkdir -p /root-layer/themes/trguing && \
unzip \
/tmp/trguing-web.zip -d \
/root-layer/themes/trguing

# copy local files
COPY root/ /root-layer/

# ## Single layer deployed image ##
FROM scratch

LABEL maintainer="FujiZ"
LABEL maintainer="Azlux"

# # Add files from buildstage
COPY --from=buildstage /root-layer/ /
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Transmission Web Control - Transmission UI Mod
# TrguiNG - Remote GUI for Transmission torrent daemon

This mod adds Transmission Web Control to Transmission, to be installed/updated during container start.
This mod adds TrguiNG to Transmission, to be installed/updated during container start.

In Transmission docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:transmission-transmission-web-control`
In Transmission docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:transmission-trguing`

If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:transmission-transmission-web-control|linuxserver/mods:transmission-mod2`
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:transmission-trguing|linuxserver/mods:transmission-mod2`

## Notes

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash

Check failure on line 1 in root/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run

View workflow job for this annotation

GitHub Actions / permission_check / permission_check

Missing Executable Bit

This file needs to be set as executable!
# shellcheck shell=bash

printf "/themes/transmission-trguing" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME

lsiown -R abc:abc /themes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-transmission-trguing-install/run

0 comments on commit 35635aa

Please sign in to comment.