mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 17:40:31 +02:00
add yq
This commit is contained in:
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
@@ -18,6 +19,7 @@ RUN \
|
||||
smbclient \
|
||||
|| apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
@@ -27,9 +28,9 @@ RUN \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
&& rm -rf /tmp/bashio
|
||||
|
||||
#################
|
||||
# Correct image #
|
||||
#################
|
||||
#################
|
||||
# Correct image #
|
||||
#################
|
||||
RUN \
|
||||
# Allow UID and GID setting
|
||||
sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||
|
||||
@@ -10,6 +10,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
|
||||
@@ -10,6 +10,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
|
||||
@@ -7,6 +7,7 @@ ARG BASHIO_VERSION=0.13.1
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
##################
|
||||
# Install bashio #
|
||||
##################
|
||||
|
||||
@@ -7,6 +7,7 @@ ARG BASHIO_VERSION=0.13.1
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
samba \
|
||||
smbclient \
|
||||
##################
|
||||
|
||||
@@ -15,6 +15,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
|
||||
@@ -16,6 +16,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint \
|
||||
&& apt-get clean \
|
||||
|
||||
@@ -12,6 +12,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update
|
||||
apt-get install -yq --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint \
|
||||
&& apt-get clean \
|
||||
|
||||
@@ -10,8 +10,9 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
################
|
||||
apt-get clean &&
|
||||
apt-get update &&
|
||||
apt-get install -yq --no-install-recommends \
|
||||
apt-get install --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN \
|
||||
apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
bash \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -9,6 +9,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
bash \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -9,6 +9,7 @@ RUN \
|
||||
##################
|
||||
apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
\
|
||||
|
||||
@@ -15,6 +15,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint \
|
||||
&& apt-get clean \
|
||||
|
||||
@@ -10,6 +10,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint
|
||||
|
||||
|
||||
@@ -11,12 +11,14 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
smbclient || apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -16,6 +16,7 @@ RUN \
|
||||
apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
bash \
|
||||
xz build-base libressl-dev ca-certificates npm \
|
||||
\
|
||||
@@ -35,7 +36,7 @@ RUN \
|
||||
&& apk add --no-cache \
|
||||
go \
|
||||
npm \
|
||||
# && npm install mustache-cli --global
|
||||
# && npm install mustache-cli --global
|
||||
&& apk upgrade --no-cache &&\
|
||||
apk add --no-cache --virtual .build-deps\
|
||||
build-base\
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN apt-get update \
|
||||
\
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
samba \
|
||||
smbclient \
|
||||
\
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN apt-get update \
|
||||
\
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
samba \
|
||||
smbclient \
|
||||
nginx \
|
||||
|
||||
@@ -9,6 +9,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
samba \
|
||||
smbclient \
|
||||
nginx
|
||||
|
||||
@@ -16,6 +16,7 @@ RUN \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
wget \
|
||||
jq \
|
||||
yq \
|
||||
nginx \
|
||||
##################
|
||||
# Install bashio #
|
||||
|
||||
@@ -12,8 +12,9 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
# nginx \
|
||||
# nginx \
|
||||
\
|
||||
##################
|
||||
# Install bashio #
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -9,6 +9,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apk update &&
|
||||
apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
@@ -19,6 +20,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
# Backup if change
|
||||
|| apk add --no-cache jq curl \
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN \
|
||||
apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
\
|
||||
###################
|
||||
# Install bashio #
|
||||
|
||||
@@ -12,6 +12,7 @@ RUN apt-get update && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
@@ -18,7 +19,6 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
samba \
|
||||
yamllint
|
||||
|
||||
|
||||
###################
|
||||
# Install bashio #
|
||||
##################
|
||||
|
||||
@@ -13,6 +13,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -10,6 +10,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update &&
|
||||
apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
@@ -18,6 +19,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apk update &&
|
||||
apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -16,6 +16,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -12,6 +12,7 @@ RUN \
|
||||
# Install bashio
|
||||
apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
\
|
||||
|
||||
@@ -17,6 +17,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
samba \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -15,6 +15,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update \
|
||||
apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -11,17 +11,18 @@ ARG TEMPIO_VERSION=2021.01.0
|
||||
ARG BUILD_ARCH
|
||||
|
||||
RUN \
|
||||
# Install script
|
||||
# Install script
|
||||
chmod a+x /run.sh \
|
||||
\
|
||||
# Add apps
|
||||
# Add apps
|
||||
&& apk add --no-cache \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
nginx \
|
||||
\
|
||||
# Install tempio
|
||||
# Install tempio
|
||||
&& curl -L -f -s -o /usr/bin/tempio \
|
||||
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/tempio \
|
||||
@@ -36,22 +37,22 @@ RUN \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
&& rm -rf /tmp/bashio \
|
||||
\
|
||||
# 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/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
||||
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
|
||||
# Correct visualization bug on mobile
|
||||
# && sed -i 's|content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"|content="width=980, initial-scale=1.0"|g' /app/scrutiny-web/index.html \
|
||||
# use /data instead of /config for database
|
||||
# Correct visualization bug on mobile
|
||||
# && sed -i 's|content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"|content="width=980, initial-scale=1.0"|g' /app/scrutiny-web/index.html \
|
||||
# use /data instead of /config for database
|
||||
&& sed -i 's| /config| /data|g' /defaults/scrutiny.yaml \
|
||||
&& sed -i 's| /config| /data|g' /etc/cont-init.d/* \
|
||||
&& sed -i 's| /config| /data|g' /etc/logrotate.d/scrutiny \
|
||||
&& sed -i 's| /config| /data|g' /etc/crontabs/root \
|
||||
# analyse local devices at reboot
|
||||
# && sed -i '$d' /etc/crontabs/root \
|
||||
# && sed -i -e '$a @reboot /run.sh' /etc/crontabs/root \
|
||||
# && sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root \
|
||||
# correct url paths
|
||||
# analyse local devices at reboot
|
||||
# && sed -i '$d' /etc/crontabs/root \
|
||||
# && sed -i -e '$a @reboot /run.sh' /etc/crontabs/root \
|
||||
# && sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root \
|
||||
# correct url paths
|
||||
&& grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g'
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
@@ -12,6 +12,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
cifs-utils \
|
||||
keyutils \
|
||||
|
||||
@@ -7,6 +7,7 @@ ARG BASHIO_VERSION=0.13.1
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
samba \
|
||||
samba-client \
|
||||
&& curl -J -L -o /tmp/bashio.tar.gz \
|
||||
|
||||
@@ -8,6 +8,7 @@ ARG BASHIO_VERSION=0.13.1
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
jq \
|
||||
yq \
|
||||
moreutils \
|
||||
samba \
|
||||
nginx \
|
||||
|
||||
@@ -15,6 +15,7 @@ RUN \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
curl \
|
||||
yamllint \
|
||||
&& apt-get clean \
|
||||
|
||||
@@ -10,6 +10,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
jq \
|
||||
yq \
|
||||
yamllint \
|
||||
curl &&
|
||||
apt-get clean
|
||||
|
||||
Reference in New Issue
Block a user