Skip to content

Commit 2057d39

Browse files
committed
Release 2.4
- Allow use of optional environmental variables for Lidarr config - Updated Docker labels
1 parent e9cc0a2 commit 2057d39

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ RUN \
1818
## Single layer deployed image ##
1919
FROM scratch
2020

21-
LABEL maintainer="TheCaptain989"
21+
LABEL org.opencontainers.image.source=https://github.com/TheCaptain989/lidarr-flac2mp3
22+
LABEL org.opencontainers.image.description="A Docker Mod to Lidarr to automatically convert FLAC files to MP3s, or other format"
23+
LABEL org.opencontainers.image.licenses=GPL-3.0-only
24+
LABEL org.opencontainers.image.authors="TheCaptain989"
2225

2326
# Add files from buildstage
2427
COPY --from=buildstage /root-layer/ /

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Production Container info: ![Docker Image Size](https://img.shields.io/docker/im
99
Development Container info:
1010
![Docker Image Size](https://img.shields.io/docker/image-size/thecaptain989/lidarr-flac2mp3 "Container Size")
1111
![Docker Pulls](https://img.shields.io/docker/pulls/thecaptain989/lidarr-flac2mp3 "Container Pulls")
12+
[![GitHub Super-Linter](https://github.com/TheCaptain989/lidarr-flac2mp3/actions/workflows/linter.yml/badge.svg)](https://github.com/TheCaptain989/lidarr-flac2mp3/actions/workflows/linter.yml "Linter Job")
1213

1314
# Installation
1415
1. Pull the [linuxserver/lidarr](https://hub.docker.com/r/linuxserver/lidarr "LinuxServer.io's Lidarr container") docker image from GitHub Container Registry or Docker Hub:

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Only the latest major and minor version are supported.
1313

1414
Vulnerability reports or security concerns may be submitted as a new issue in GitHub, or emailed to:
1515

16-
16+
1717
1818
Please allow 48-hours for an initial response. An issue will be entered if accepted.

root/usr/local/bin/flac2mp3.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ elif [ -f "$flac2mp3_config" ]; then
644644
[[ $flac2mp3_xml_entity = "ApiKey" ]] && flac2mp3_apikey=$flac2mp3_xml_content
645645
done < $flac2mp3_config
646646

647+
# Allow use of environment variables from https://github.com/Lidarr/Lidarr/pull/4812
648+
[ -n "${LIDARR__SERVER__PORT}" ] && flac2mp3_port="${LIDARR__SERVER__PORT}"
649+
[ -n "${LIDARR__SERVER__URLBASE}" ] && flac2mp3_urlbase="${LIDARR__SERVER__URLBASE}"
650+
[ -n "${LIDARR__SERVER__BINDADDRESS}" ] && flac2mp3_bindaddress="${LIDARR__SERVER__BINDADDRESS}"
651+
[ -n "${LIDARR__AUTH__APIKEY}" ] && flac2mp3_apikey="${LIDARR__AUTH__APIKEY}"
652+
647653
# Check for localhost
648654
[[ $flac2mp3_bindaddress = "*" ]] && flac2mp3_bindaddress=localhost
649655

0 commit comments

Comments
 (0)