mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
hadolint
This commit is contained in:
@@ -22,6 +22,8 @@ FROM ${BUILD_FROM}
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
# hadolint ignore=SC2015
|
||||
RUN \
|
||||
# Allow UID and GID setting
|
||||
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||
|
||||
@@ -21,6 +21,7 @@ FROM ${BUILD_FROM}
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
RUN \
|
||||
########################################
|
||||
# Correct upstream image folders links #
|
||||
|
||||
@@ -23,6 +23,7 @@ FROM ${BUILD_FROM}
|
||||
##################
|
||||
|
||||
ENV PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng
|
||||
# hadolint ignore=SC2015
|
||||
RUN \
|
||||
#################
|
||||
# Correct image #
|
||||
|
||||
@@ -25,6 +25,7 @@ FROM ${BUILD_FROM}
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# hadolint ignore=SC2016
|
||||
RUN \
|
||||
#############################
|
||||
# Allow UID and GID setting #
|
||||
|
||||
@@ -27,6 +27,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
# Setup base
|
||||
ARG BUILD_UPSTREAM="2.11.0"
|
||||
|
||||
# hadolint ignore=SC2015
|
||||
RUN \
|
||||
BUILD_ARCH=$(uname -m) \
|
||||
&& echo "${BUILD_ARCH}" \
|
||||
|
||||
@@ -23,6 +23,7 @@ FROM ${BUILD_FROM}
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
RUN \
|
||||
###############
|
||||
# Adapt image #
|
||||
|
||||
@@ -22,6 +22,7 @@ FROM ${BUILD_FROM}
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# hadolint ignore=DL4006
|
||||
RUN \
|
||||
# Allow UID and GID setting
|
||||
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||
|
||||
@@ -33,7 +33,8 @@ RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||
&& usermod --home /share/webtop abc
|
||||
|
||||
# Graphic drivers for rpi4
|
||||
RUN apt-get update && apt-get dist-upgrade && apt-get install -yqq libgles2-mesa libgles2-mesa-dev xorg-dev || true
|
||||
# hadolint ignore=SC2015
|
||||
RUN apt-get update && apt-get install -yqq --no-install-recommends libgles2-mesa libgles2-mesa-dev xorg-dev || true
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
|
||||
@@ -25,6 +25,7 @@ FROM nathanvaughn/webtrees:$BUILD_UPSTREAM
|
||||
# Global variables
|
||||
ENV WEBTREES_HOME="/data/webtrees"
|
||||
WORKDIR $WEBTREES_HOME
|
||||
# hadolint ignore=DL4006
|
||||
RUN \
|
||||
# Change data location
|
||||
grep -rl "/var/www/webtrees" /etc/ | xargs sed -i 's|/var/www/webtrees|/data/webtrees|g' \
|
||||
|
||||
Reference in New Issue
Block a user