File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1818# # Single layer deployed image ##
1919FROM scratch
2020
21- LABEL maintainer="TheCaptain989"
21+ LABEL org.opencontainers.image.source=https://github.com/TheCaptain989/radarr-striptracks
22+ LABEL org.opencontainers.image.description="A Docker Mod to Radarr/Sonarr to automatically strip out unwanted audio and subtitle streams"
23+ LABEL org.opencontainers.image.licenses=GPL-3.0-only
24+ LABEL org.opencontainers.image.authors="TheCaptain989"
2225
2326# Add files from buildstage
2427COPY --from=buildstage /root-layer/ /
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ A [Docker Mod](https://github.com/linuxserver/docker-mods) for the LinuxServer.i
66** This unified script works in both Radarr and Sonarr. Use this mod in either container!**
77> ** NOTE:** This mod supports Linux OSes only.
88
9- Container info:
9+ Production Container info: ![ Docker Image Size] ( https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks " Container Size ")
10+ Development Container info:
1011![ Docker Image Size] ( https://img.shields.io/docker/image-size/thecaptain989/radarr-striptracks " Container Size ")
1112![ Docker Pulls] ( https://img.shields.io/docker/pulls/thecaptain989/radarr-striptracks " Container Pulls ")
1213[ ![ GitHub Super-Linter] ( https://github.com/TheCaptain989/radarr-striptracks/actions/workflows/linter.yml/badge.svg )] ( https://github.com/TheCaptain989/radarr-striptracks/actions/workflows/linter.yml " Linter Job ")
13- Production Container info: ![ Docker Image Size] ( https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks " Container Size ")
1414
1515# Installation
16161 . Pull your selected container ([ linuxserver/radarr] ( https://hub.docker.com/r/linuxserver/radarr " LinuxServer.io's Radarr container ") or [ linuxserver/sonarr] ( https://hub.docker.com/r/linuxserver/sonarr " LinuxServer.io's Sonarr container ") ) from GitHub Container Registry or Docker Hub:
Original file line number Diff line number Diff line change @@ -911,6 +911,16 @@ elif [ -f "$striptracks_arr_config" ]; then
911911 [[ $striptracks_xml_entity = " ApiKey" ]] && striptracks_apikey=$striptracks_xml_content
912912 done < $striptracks_arr_config
913913
914+ # Allow use of environment variables from https://github.com/Sonarr/Sonarr/pull/6746
915+ striptracks_port_var=" ${striptracks_type^^} __SERVER__PORT"
916+ [ -n " ${! striptracks_port_var} " ] && striptracks_port=" ${! striptracks_port_var} "
917+ striptracks_urlbase_var=" ${striptracks_type^^} __SERVER__URLBASE"
918+ [ -n " ${! striptracks_urlbase_var} " ] && striptracks_urlbase=" ${! striptracks_urlbase_var} "
919+ striptracks_bindaddress_var=" ${striptracks_type^^} __SERVER__BINDADDRESS"
920+ [ -n " ${! striptracks_bindaddress_var} " ] && striptracks_bindaddress=" ${! striptracks_bindaddress_var} "
921+ striptracks_apikey_var=" ${striptracks_type^^} __AUTH__APIKEY"
922+ [ -n " ${! striptracks_apikey_var} " ] && striptracks_apikey=" ${! striptracks_apikey_var} "
923+
914924 # Check for localhost
915925 [[ $striptracks_bindaddress = " *" ]] && striptracks_bindaddress=localhost
916926
You can’t perform that action at this time.
0 commit comments