fix expose on all docker containers and add appdaemon (#375)

This commit is contained in:
Kjeld Schouten-Lebbing 2021-04-17 17:30:53 +02:00 committed by GitHub
parent bf37d50f74
commit ff0099b9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 54 additions and 13 deletions

View File

@ -0,0 +1,33 @@
# hadolint ignore=DL3007
ARG VERSION
FROM ghcr.io/k8s-at-home/appdaemon:v${VERSION}
ARG TARGETPLATFORM
USER root
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3008,DL3015,SC2086
RUN \
usermod -l apps kah \
&& \
groupmod -n apps kah \
&& chown -R apps:apps /config \
&& rm -rf /app/package_info \
&& \
printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info
USER apps
EXPOSE 5050
CMD ["/entrypoint.sh"]
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
LABEL "authors"="TrueCharts <info@truecharts.org>"
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps/tree/master/.containers/apps/appdaemon"
LABEL "org.opencontainers.image.documentation "="https://truecharts.org"

View File

@ -0,0 +1 @@
4.0.8

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
TOKEN=$(curl https://ghcr.io/token\?scope\="repository:k8s-at-home/appdaemon:pull" | jq --raw-output '.[]')
version=$(curl -H "Authorization: Bearer ${TOKEN}" https://ghcr.io/v2/k8s-at-home/appdaemon/tags/list | jq --raw-output '.tags[]' | grep -v latest | grep -v buildcache | tail -n1)
version="${version#*v}"
version="${version#*release-}"
echo "${version}"

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8096 8920
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 9117
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8686
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 6789
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 5076
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 32400/tcp 1900/tcp 5353/udp 8324/tcp 32410/udp 32413/udp 32414/udp 32469/udp
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 6881 6881/udp ${WEBUI_PORT}
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 7878
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8787
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8080
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8989
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 8181
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]

View File

@ -23,7 +23,7 @@ RUN \
USER apps USER apps
EXPOSE 6767 EXPOSE 51413 ${WEBUI_PORT}
CMD ["/entrypoint.sh"] CMD ["/entrypoint.sh"]