mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Lint
This commit is contained in:
@@ -26,7 +26,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
# hadolint ignore=DL4006,SC2013
|
||||
RUN \
|
||||
########################################
|
||||
# Correct upstream image folders links #
|
||||
|
||||
@@ -28,6 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=DL4006,SC2013
|
||||
RUN sed -i "s|/config|/config/addons_config/addons_config/overseerr|g" /etc/services.d/overseerr/run \
|
||||
&& sed -i "s|/config|/config/addons_config/addons_config/overseerr|g" /etc/cont-init.d/30-config \
|
||||
\
|
||||
|
||||
@@ -29,7 +29,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
|
||||
ENV PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng
|
||||
# spellcheck disable=SC2015
|
||||
# hadolint ignore=SC2015
|
||||
# hadolint ignore=DL4006,SC2013
|
||||
RUN \
|
||||
#################
|
||||
# Correct image #
|
||||
|
||||
@@ -27,7 +27,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=SC2015
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
# Avoid custom-init.d duplications
|
||||
grep -sril "Potential tampering with custom" /etc/cont-init.d /etc/s6-overlay/s6-rc.d | xargs -r rm \
|
||||
|
||||
@@ -27,6 +27,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
# Avoid custom-init.d duplications
|
||||
grep -sril "Potential tampering with custom" /etc/cont-init.d /etc/s6-overlay/s6-rc.d | xargs -r rm \
|
||||
|
||||
@@ -29,6 +29,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
|
||||
ENV HOME=/config/addons_config/plex-data-manager
|
||||
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
# use /data instead of /config for hass.io environment
|
||||
sed -i "s|/config|/config/addons_config/plex-meta-manager|g" /etc/services.d/*/run \
|
||||
|
||||
@@ -28,7 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# GLOBAL LSIO MODIFICATIONS
|
||||
# hadolint ignore=SC2015
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
ARG CONFIGLOCATION="/config/addons_config/prowlarr"
|
||||
RUN \
|
||||
# Avoid custom-init.d duplications
|
||||
@@ -43,12 +43,12 @@ RUN \
|
||||
sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' "$file" && \
|
||||
sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' "$file"; done
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
|
||||
# Add rootfs
|
||||
COPY rootfs/ /
|
||||
# Add rootfs
|
||||
COPY rootfs/ /
|
||||
|
||||
# Corrects permissions for s6 v3
|
||||
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
||||
|
||||
@@ -27,6 +27,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
# use /data instead of /config for hass.io environment
|
||||
sed -i "s|/config|/config/addons_config/radarr|g" /etc/services.d/radarr/run \
|
||||
|
||||
@@ -28,6 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN sed -i "s|/config|/config/addons_config/readarr|g" /etc/services.d/readarr/run \
|
||||
&& sed -i "s|/config|/config/addons_config/readarr|g" /etc/cont-init.d/30-config \
|
||||
\
|
||||
|
||||
@@ -27,6 +27,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
# use /data instead of /config for hass.io environment
|
||||
sed -i 's|/config \\|/data \\|g' /etc/cont-init.d/30-config \
|
||||
|
||||
@@ -28,7 +28,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
# hadolint ignore=SC2015,DL4006,SC2013
|
||||
RUN \
|
||||
###############
|
||||
# Adapt image #
|
||||
|
||||
Reference in New Issue
Block a user