mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
hadolint
This commit is contained in:
@@ -57,7 +57,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
|||||||
&& rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
|
&& rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
|
||||||
|
|
||||||
# Install mustache
|
# Install mustache
|
||||||
# hadolint ignore=SC2015
|
# spellcheck disable=SC2015
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
go \
|
go \
|
||||||
npm \
|
npm \
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ FROM anthonyraymond/joal:$BUILD_UPSTREAM
|
|||||||
##################
|
##################
|
||||||
|
|
||||||
# Install Joal
|
# Install Joal
|
||||||
# hadolint ignore=SC2015,DL4006
|
# spellcheck disable=SC2015
|
||||||
|
# hadolint ignore=DL4006
|
||||||
RUN \
|
RUN \
|
||||||
if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi \
|
if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi \
|
||||||
&& curl -s -S -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz") >/dev/null \
|
&& curl -s -S -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz") >/dev/null \
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ FROM ${BUILD_FROM}
|
|||||||
# 2 Modify Image #
|
# 2 Modify Image #
|
||||||
##################
|
##################
|
||||||
|
|
||||||
|
# spellcheck disable=SC2015
|
||||||
# hadolint ignore=DL4006
|
# hadolint ignore=DL4006
|
||||||
# hadolint ignore=SC2015
|
|
||||||
RUN \
|
RUN \
|
||||||
# Allow UID and GID setting
|
# Allow UID and GID setting
|
||||||
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ FROM ${BUILD_FROM}
|
|||||||
##################
|
##################
|
||||||
|
|
||||||
ENV PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng
|
ENV PAPERLESS_DATA_DIR=/config/addons_config/paperless_ng
|
||||||
# hadolint ignore=SC2015
|
# spellcheck disable=SC2015
|
||||||
RUN \
|
RUN \
|
||||||
#################
|
#################
|
||||||
# Correct image #
|
# Correct image #
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|||||||
# Setup base
|
# Setup base
|
||||||
ARG BUILD_UPSTREAM="2.11.0"
|
ARG BUILD_UPSTREAM="2.11.0"
|
||||||
|
|
||||||
# hadolint ignore=SC2015
|
# spellcheck disable=SC2015
|
||||||
RUN \
|
RUN \
|
||||||
BUILD_ARCH=$(uname -m) \
|
BUILD_ARCH=$(uname -m) \
|
||||||
&& echo "${BUILD_ARCH}" \
|
&& echo "${BUILD_ARCH}" \
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ RUN sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
|||||||
&& usermod --home /share/webtop abc
|
&& usermod --home /share/webtop abc
|
||||||
|
|
||||||
# Graphic drivers for rpi4
|
# Graphic drivers for rpi4
|
||||||
# hadolint ignore=SC2015
|
# spellcheck disable=SC2015
|
||||||
RUN apt-get update && apt-get install -yqq --no-install-recommends libgles2-mesa libgles2-mesa-dev xorg-dev || true
|
RUN apt-get update && apt-get install -yqq --no-install-recommends libgles2-mesa libgles2-mesa-dev xorg-dev || true
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
|||||||
Reference in New Issue
Block a user