Use third-party containers as source (#367)

* try fetching ubuntu container from KAH

* test using github token

* oops

* fix container build process for PR's

* v

* whoopsies

* link Alpine to KAH

* try porting bazarr

* oops

* improve bazarr labeling

* need version before setting dockerfile

* Fix platform (as SCALE doesn't run on ARM officially)

* Cleanup all Apps related to KAH

* only update base if base exists and do so on an per-app basis
This commit is contained in:
Kjeld Schouten-Lebbing
2021-04-16 14:21:18 +02:00
committed by GitHub
parent 038bed661c
commit 99bb72cb13
83 changed files with 290 additions and 3707 deletions
+15 -38
View File
@@ -1,56 +1,33 @@
# hadolint ignore=DL3007
FROM ghcr.io/truecharts/ubuntu:latest
ARG VERSION
FROM ghcr.io/k8s-at-home/sabnzbd:v${VERSION}
ARG TARGETPLATFORM
USER root
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,DL3013,DL3015,SC2086
# hadolint ignore=DL3008,DL3015,SC2086
RUN \
export EXTRA_INSTALL_ARG="build-essential libffi-dev libssl-dev python3-dev python3-pip"; \
apt-get -qq update \
usermod -l apps kah \
&& \
apt-get -qq install -y \
p7zip-full \
par2 \
python3 \
python3-distutils \
unrar \
unzip \
${EXTRA_INSTALL_ARG} \
groupmod -n apps kah \
&& chown -R apps:apps /config \
&& rm -rf /app/package_info \
&& \
ln -s /usr/bin/python3 /usr/bin/python \
&& \
curl -fsSL "https://github.com/sabnzbd/sabnzbd/releases/download/${VERSION}/SABnzbd-${VERSION}-src.tar.gz" | tar xzf - -C /app --strip-components=1 \
&& \
pip3 install --no-cache-dir -U -r /app/requirements.txt \
&& \
printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info \
&& \
pip3 install --no-cache-dir -U \
apprise \
&& apt-get remove -y ${EXTRA_INSTALL_ARG} \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt-get autoremove -y \
&& apt-get clean \
&& \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/ \
&& chmod -R u=rwX,go=rX /app \
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
&& update-ca-certificates
printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info
USER apps
EXPOSE 8080
EXPOSE 6767
COPY ./.containers/apps/sabnzbd/entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps"
LABEL "authors"="TrueCharts <info@truecharts.org>"
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps/tree/master/.containers/apps/sabnzbd"
LABEL "org.opencontainers.image.documentation "="https://truecharts.org"