Add labels

This commit is contained in:
Alexandre
2021-10-23 22:24:00 +02:00
parent 543101a9c7
commit 1587b8924c
27 changed files with 453 additions and 42 deletions

View File

@@ -10,7 +10,6 @@ ENV WEBTREES_HOME="/data/webtrees"
WORKDIR $WEBTREES_HOME
ENTRYPOINT ["/start.sh"]
VOLUME ["/data"]
ARG BASHIO_VERSION=0.13.1
RUN \
################
@@ -45,18 +44,6 @@ RUN \
# Add end script
&& sed -i '$ d' /docker-entrypoint.sh
# Change data location
# && cp -rn /var/www/webtrees /data \
# && mkdir -p /data/webtrees \
# && chown -R www-data:www-data /data/webtrees \
# Use data from addon options for all values
#&& sed -i 's|cat \"\$|jq ."|g' /docker-entrypoint.sh \
#&& sed -i 's|_FILE" 2> /dev/null| //empty" /data/options.json|g' /docker-entrypoint.sh \
#&& chown root:root /end.sh \
#&& chmod a+x /end.sh \
#&& sed -i "2 i\cd / && ./start.sh" /docker-entrypoint.sh \
#&& sed -i '$ i\export DB_NAME=$DB_NAME && export WT_USER=$WT_USER && export WT_PASS=$WT_PASS && cd / && ./end.sh' /docker-entrypoint.sh
### LABELS
ARG BUILD_ARCH
ARG BUILD_DATE
@@ -71,13 +58,13 @@ LABEL \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="tyjtyj (https://github.com/tyjtyj)" \
maintainer="alexbelgium (https://github.com/alexbelgium)" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Home Assistant Add-ons" \
org.opencontainers.image.authors="tyjtyj (https://github.com/tyjtyj)" \
org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://github.com/tyjtyj" \
org.opencontainers.image.url="https://github.com/alexbelgium" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \