From 11bb2d519e66a1b491ffabaa4a34e368f5db4f4f Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 12 Jan 2025 00:04:19 -0500 Subject: [PATCH] add cert-sorter, qbt and radarr containers --- cert-sorter/Dockerfile | 12 ++++++++++++ cert-sorter/copy.sh | 8 ++++++++ nginx/default.conf | 3 ++- qbittorrent/Dockerfile | 23 +++++++++++++++++++++++ radarr/Dockerfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 cert-sorter/Dockerfile create mode 100644 cert-sorter/copy.sh create mode 100644 qbittorrent/Dockerfile create mode 100644 radarr/Dockerfile diff --git a/cert-sorter/Dockerfile b/cert-sorter/Dockerfile new file mode 100644 index 0000000..946af25 --- /dev/null +++ b/cert-sorter/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:24.04 + +RUN mkdir -p /app /etc/letsencrypt /dest/1000 + +COPY copy.sh /app/copy.sh + +RUN chmod +x /app/copy.sh + +VOLUME /etc/letsencrypt +VOLUME /dest/1000 + +ENTRYPOINT ["/app/copy.sh"] \ No newline at end of file diff --git a/cert-sorter/copy.sh b/cert-sorter/copy.sh new file mode 100644 index 0000000..a5da586 --- /dev/null +++ b/cert-sorter/copy.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +rm -v /dest/1000/*.pem +cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/privkey.pem /dest/1000/privkey.pem +cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/cert.pem /dest/1000/cert.pem +cp -v /etc/letsencrypt/live/adguard.balsillie.house-0002/fullchain.pem /dest/1000/fullchain.pem +chown -v ubuntu:ubuntu /dest/1000/*.pem +ls -lh /dest/1000 \ No newline at end of file diff --git a/nginx/default.conf b/nginx/default.conf index f3e6839..46522a2 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -16,11 +16,12 @@ server { root /usr/share/nginx/html; } - location /.well-known/host-meta { + location /.well-known/host-meta { # https://github.com/felx/mastodon-documentation/blob/master/Running-Mastodon/Serving_a_different_domain.md#configuring-domainorg return 301 https://social.balsillie.net$request_uri; } location /.well-known/webfinger { + add_header Access-Control-Allow-Origin '*'; # https://docs.joinmastodon.org/admin/config/#web_domain return 301 https://social.balsillie.net$request_uri; } diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile new file mode 100644 index 0000000..8476ff5 --- /dev/null +++ b/qbittorrent/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:24.04 + +ENV QBITTORRENT_VERSION=5.0.3 + +RUN echo "deb https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu noble main" >> /etc/apt/sources.list.d/ubuntu.sources && \ + apt update && \ + apt install -y \ + qbittorrent-nox + +RUN mkdir -p /config /media && \ + chmod 775 /config /media && \ + chown ubuntu:ubuntu /config /media + +USER ubuntu + +VOLUME /config +VOLUME /media +WORKDIR /config + +ENTRYPOINT [ "/usr/bin/qbittorrent-nox" ] +CMD [ "--profile=/config" ] + + diff --git a/radarr/Dockerfile b/radarr/Dockerfile new file mode 100644 index 0000000..b3b7dbb --- /dev/null +++ b/radarr/Dockerfile @@ -0,0 +1,42 @@ +ARG RADARR_VERSION=5.17.2.9580 + +FROM ubuntu:24.04 AS base + +RUN apt update && \ + apt install -y \ + curl \ + sqlite3 \ + libicu-dev && \ + apt clean && \ + rm -rf /var/lib/apt/lists/* + +FROM base AS download +ARG RADARR_VERSION + +RUN mkdir /download /radarr + +WORKDIR /download + +RUN curl -OL https://github.com/Radarr/Radarr/releases/download/v${RADARR_VERSION}/Radarr.master.${RADARR_VERSION}.linux-core-x64.tar.gz && \ + tar -xzvf /download/Radarr.master.${RADARR_VERSION}.linux-core-x64.tar.gz -C /radarr + +FROM base + +RUN mkdir -p /opt /cert /media /config && \ + chown ubuntu:ubuntu /cert /media /config + +VOLUME /cert +VOLUME /config +VOLUME /media + +COPY --from=download /radarr/Radarr /opt/radarr + +USER ubuntu + +WORKDIR /config + +ENTRYPOINT ["/opt/radarr/Radarr"] +CMD ["-nobrowser", "-data=/config"] + + +