New PACKAGES logic

This commit is contained in:
Alexandre
2021-12-07 20:32:38 +01:00
parent d0f5c8653b
commit ee196a0279
75 changed files with 981 additions and 363 deletions

View File

@@ -6,7 +6,7 @@ VOLUME [ "/data" ]
#Install last version https://github.com/dvershinin/lastversion #Install last version https://github.com/dvershinin/lastversion
ENV PACKAGES="git moreutils" ENV PACKAGES="git moreutils"
RUN \ RUN \
apk add --no-cache $PACKAGES \ apk add --no-cache ${PACKAGES} \
&& pip install --upgrade pip \ && pip install --upgrade pip \
&& pip install lastversion && pip install lastversion

View File

@@ -10,8 +10,8 @@ if [ ! -f "/usr/bin/bashio" ]; then
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y $PACKAGES 2>/dev/null \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache $PACKAGES || apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #

View File

@@ -2,27 +2,18 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client"
RUN \ RUN \
############################### ###############################
# Install apps test both dist # # Install apps test both dist #
############################### ###############################
apt-get clean \ apk add --no-cache ${PACKAGES} \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
|| apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -32,7 +23,7 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio && rm -rf /tmp/bashio || true
RUN \ RUN \
# Correct config folder # Correct config folder

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -24,15 +24,15 @@ COPY --from=vaultwarden /web-vault /opt/web-vault
# add Nginx # add Nginx
# hadolint ignore=DL3009 # hadolint ignore=DL3009
ENV PACKAGES="libmariadb-dev-compat \
libpq5 \
nginx \
sqlite3"
RUN \ RUN \
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
\ && apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get install -y --no-install-recommends \
libmariadb-dev-compat \
libpq5 \
nginx \
sqlite3 \
&& apt-get clean \ && apt-get clean \
&& rm -f -r \ && rm -f -r \
/etc/nginx \ /etc/nginx \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM linuxserver/booksonic-air:latest FROM linuxserver/booksonic-air:latest
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -6,15 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean PACKAGES="${PACKAGES:="curl"}"
apt-get update
apt-get install -y --no-install-recommends \ apt-get clean \
jq \ && apt-get update \
cifs-utils \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
keyutils \ || apk add --no-cache ${PACKAGES}
samba \
smbclient
apt-get clean
################### ###################
# Install bashio # # Install bashio #
@@ -26,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -1,6 +1,12 @@
ARG BUILD_VERSION ARG BUILD_VERSION
FROM coderaiser/cloudcmd:latest FROM coderaiser/cloudcmd:latest
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
cifs-utils \
keyutils \
samba \
smbclient \
nginx"
RUN \ RUN \
################ ################
@@ -8,13 +14,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
nginx \
&& apt-get clean \ && apt-get clean \
\ \
################## ##################

View File

@@ -6,16 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean && PACKAGES="${PACKAGES:="curl"}"
apt-get update &&
apt-get install -y --no-install-recommends \ apt-get clean \
jq \ && apt-get update \
cifs-utils \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
keyutils \ || apk add --no-cache ${PACKAGES}
samba \
smbclient \
nginx &&
apt-get clean
################### ###################
# Install bashio # # Install bashio #
@@ -27,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -2,11 +2,11 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq"
# Install bashio # Install bashio
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
################## ##################
# Install bashio # # Install bashio #
################## ##################

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,13 +2,14 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
samba \
smbclient"
# Install bashio # Install bashio
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \ \
samba \
smbclient \
################## ##################
# Install bashio # # Install bashio #
################## ##################

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,7 +2,11 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ARG TEMPIO_VERSION=2021.01.0 ENV PACKAGES="jq \
cifs-utils \
keyutils \
samba \
smbclient"
# Set shell # Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -13,12 +17,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -28,13 +27,14 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio || true
\
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 \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/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 \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
&& sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \ && sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -3,6 +3,9 @@ FROM m4dm4rtig4n/enedisgateway2mqtt:$BUILD_UPSTREAM
# Base system # Base system
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
yamllin"
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
@@ -14,10 +17,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
yamllint \
&& apt-get clean \ && apt-get clean \
\ \
################## ##################

View File

@@ -3,17 +3,15 @@
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
( (
# Remove errors on apt-get
export DEBIAN_FRONTEND=noninteractive
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean PACKAGES="${PACKAGES:="curl"}"
apt-get update
apt-get install -yq --no-install-recommends \ apt-get clean \
jq \ && apt-get update \
curl \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
yamllint || apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #
@@ -25,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -3,7 +3,6 @@ ARG BUILD_UPSTREAM="2.19.0"
FROM hurlenko/filebrowser:v${BUILD_UPSTREAM} FROM hurlenko/filebrowser:v${BUILD_UPSTREAM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \ ENV PACKAGES="curl \
jq \ jq \
bash \ bash \
@@ -18,7 +17,7 @@ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache $PACKAGES \ apk add --no-cache ${PACKAGES} \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -6,7 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache $PACKAGES PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #

View File

@@ -2,6 +2,7 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM freqtradeorg/freqtrade:latest FROM freqtradeorg/freqtrade:latest
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq git"
USER root USER root
COPY rootfs / COPY rootfs /
@@ -11,7 +12,7 @@ RUN \
# Install apps # # Install apps #
################ ################
apt-get update \ apt-get update \
&& apt-get install -y --no-install-recommends jq git \ && apt-get install -y --no-install-recommends ${PACKAGES} \
\ \
################### ###################
# Install bashio # # Install bashio #
@@ -21,7 +22,7 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio && rm -rf /tmp/bashio || true
VOLUME [ "/data" ] VOLUME [ "/data" ]
WORKDIR / WORKDIR /

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -3,6 +3,9 @@ FROM yukulehe/gazpar2mqtt:latest
# Base system # Base system
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
ENV PACKAGES="jq \
curl \
yamllint"
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
@@ -13,10 +16,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
yamllint \
&& apt-get clean \ && apt-get clean \
\ \
################## ##################

View File

@@ -6,12 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean && PACKAGES="${PACKAGES:="curl"}"
apt-get update &&
apt-get install -y \ apt-get clean \
jq \ && apt-get update \
curl \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
yamllint || apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #
@@ -23,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -2,26 +2,18 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client"
RUN \ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean \ apk add --no-cache ${PACKAGES} \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient || apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,12 +2,18 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl"
RUN \ RUN \
################
# Install apps #
################
apk add --no-cache ${PACKAGES} \
\
################## ##################
# Install bashio # # Install bashio #
################## ##################
curl -J -L -o /tmp/bashio.tar.gz \ && curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \ && mkdir /tmp/bashio \
&& tar zxvf \ && tar zxvf \
@@ -16,7 +22,7 @@ RUN \
\ \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/bashio.tar.gz && rm -fr /tmp/bashio.tar.gz || true
# use /data instead of /config for hass.io environment # use /data instead of /config for hass.io environment
RUN sed -i "s|/config|/config/jackett|g" /etc/services.d/jackett/run \ RUN sed -i "s|/config|/config/jackett|g" /etc/services.d/jackett/run \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -5,15 +5,13 @@ FROM ${BUILD_FROM}
# Set shell # Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
samba \
cifs-utils \
smbclient"
RUN apt-get update \ RUN apt-get update \
\ && apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get install -y --no-install-recommends \
jq \
samba \
smbclient \
\
&& apt-get -y upgrade cifs-utils \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -3,6 +3,8 @@ ARG BUILD_VERSION
FROM florider89/joplin-server:master FROM florider89/joplin-server:master
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl"
USER root USER root
RUN \ RUN \
################ ################
@@ -10,10 +12,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
# nginx \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -5,12 +5,13 @@ FROM ${BUILD_FROM}
COPY rootfs / COPY rootfs /
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq curl bash"
RUN \ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apt-get update && apt-get install -y jq curl bash && apt-get clean || apk add --no-cache jq curl bash \ apt-get update && apt-get install -y --no-install-recommends ${PACKAGES} && apt-get clean || apk add --no-cache ${PACKAGES} \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -7,16 +7,16 @@ FROM ${BUILD_FROM}
ENV NEXTCLOUD_PATH="/data/config/www/nextcloud" ENV NEXTCLOUD_PATH="/data/config/www/nextcloud"
ARG BUILD_ARCH ARG BUILD_ARCH
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl jq wget gcompat@community"
# Add bashio # Add bashio
RUN \ RUN \
echo "Install version $BUILD_VERSION on $BUILD_ARCH" \ echo "Install version $BUILD_VERSION on $BUILD_ARCH" \
&& apk add --no-cache ${PACKAGES} \
################## ##################
# Install bashio # # Install bashio #
################## ##################
&& echo "**** Install Bashio ****" \ && echo "**** Install Bashio ****" \
&& apk add --no-cache \
curl jq wget \
&& curl -J -L -o /tmp/bashio.tar.gz \ && curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \ && mkdir /tmp/bashio \
@@ -26,10 +26,7 @@ RUN \
\ \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/bashio.tar.gz \ && rm -fr /tmp/bashio.tar.gz || true
\
#gclib compatibility
&& apk add --no-cache gcompat@community || true
RUN \ RUN \
# modify/copy files # modify/copy files

View File

@@ -6,25 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apk update && PACKAGES="${PACKAGES:="curl"}"
apk add --no-cache \
jq \ apt-get clean \
curl \ && apt-get update \
cifs-utils \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
keyutils \ || apk add --no-cache ${PACKAGES}
samba-client \
samba ||
(
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba
)
################### ###################
# Install bashio # # Install bashio #
@@ -36,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -2,14 +2,14 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \
jq"
RUN \ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache \ apk add --no-cache ${PACKAGES} \
curl \
jq \
\ \
################### ###################
# Install bashio # # Install bashio #
@@ -19,14 +19,14 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio || true
\
RUN \
######################################## ########################################
# Correct upstream image folders links # # Correct upstream image folders links #
######################################## ########################################
\
# 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 \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/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 \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
\ \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -5,19 +5,17 @@ FROM ${BUILD_FROM}
# Set shell # Set shell
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PAPERLESS_DATA_DIR=/config/paperless_ng ENV PAPERLESS_DATA_DIR=/config/paperless_ng
ENV PACKAGES="jq \
RUN apt-get update && \
\
apt-get clean && \
apt-get update && \
apt-get install -y --no-install-recommends \
jq \
curl \ curl \
cifs-utils \ cifs-utils \
keyutils \ keyutils \
smbclient \ smbclient \
samba \ samba \
yamllint \ yamllint"
RUN apt-get clean && \
apt-get update && \
apt-get install -y --no-install-recommends ${PACKAGES} \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -27,7 +25,7 @@ RUN apt-get update && \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio && rm -rf /tmp/bashio || true
# copy local files # copy local files
COPY rootfs/ / COPY rootfs/ /

View File

@@ -6,17 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean &&
apt-get update && apt-get clean \
apt-get install -y --no-install-recommends \ && apt-get update \
jq \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
curl \ || apk add --no-cache ${PACKAGES}
cifs-utils \
keyutils \
smbclient \
samba \
yamllint
################### ###################
# Install bashio # # Install bashio #
@@ -28,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -4,20 +4,21 @@ ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
# Add bashio # Add bashio
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -6,23 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean && PACKAGES="${PACKAGES:="curl"}"
apt-get update &&
apt-get install -y --no-install-recommends \ apt-get clean \
jq \ && apt-get update \
curl \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
cifs-utils \ || apk add --no-cache ${PACKAGES}
keyutils \
smbclient \
samba ||
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba
################### ###################
# Install bashio # # Install bashio #
@@ -34,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -7,6 +7,13 @@ FROM photoprism/photoprism:preview
COPY rootfs / COPY rootfs /
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
coreutils"
RUN \ RUN \
################ ################
@@ -14,14 +21,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
coreutils \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -31,14 +31,15 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio || true
\
RUN \
################### ###################
# Configure image # # Configure image #
################### ###################
\ \
# Create directories # Create directories
&& mkdir -m 777 -p \ mkdir -m 777 -p \
/data/photoprism/originals \ /data/photoprism/originals \
/data/photoprism/import \ /data/photoprism/import \
/data/photoprism/storage/config \ /data/photoprism/storage/config \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,9 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils"
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
@@ -10,10 +13,7 @@ VOLUME [ "/data" ]
RUN \ RUN \
# Install bashio # Install bashio
apk add --no-cache \ apk add --no-cache ${PACKAGES} \
jq \
curl \
cifs-utils \
\ \
&& curl -J -L -o /tmp/bashio.tar.gz \ && curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
@@ -25,8 +25,9 @@ RUN \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \ && rm -fr \
/tmp/* \ /tmp/* || true
\
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 \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -9,18 +9,19 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY root/ / COPY root/ /
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -30,13 +31,14 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio || true
\
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 \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/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 \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
&& sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \ && sed -i "s|chown abc:abc /config||g" /etc/cont-init.d/10-adduser \

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -8,6 +8,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base # Setup base
ARG BUILD_ARCH=amd64 ARG BUILD_ARCH=amd64
ARG BUILD_UPSTREAM="2.9.3" ARG BUILD_UPSTREAM="2.9.3"
ENV PACKAGES="nginx"
RUN \ RUN \
if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
&& if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \ && if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \
@@ -19,8 +21,7 @@ RUN \
| tar zxvf - -C /opt/ | tar zxvf - -C /opt/
RUN \ RUN \
apk add --no-cache \ apk add --no-cache ${PACKAGES} || true
nginx || true
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /

View File

@@ -1,3 +1,29 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
nginx -v &>/dev/null || apk add --no-cache nginx if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -22,7 +22,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y ${PACKAGES} \ && apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get clean \ && apt-get clean \
\ \
############## ##############

View File

@@ -10,8 +10,8 @@ if [ ! -f "/usr/bin/bashio" ]; then
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y $PACKAGES 2>/dev/null \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache $PACKAGES || apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################### ###################
# Install bashio # # Install bashio #
@@ -25,10 +25,11 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio || true
\
RUN \
# use /data instead of /config for hass.io environment # use /data instead of /config for hass.io environment
&& sed -i "s|/config|/config/radarr|g" /etc/services.d/radarr/run \ sed -i "s|/config|/config/radarr|g" /etc/services.d/radarr/run \
&& sed -i "s|/config|/config/radarr|g" /etc/cont-init.d/30-config \ && sed -i "s|/config|/config/radarr|g" /etc/cont-init.d/30-config \
\ \
# Allow UID and GID setting # Allow UID and GID setting

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -9,13 +15,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
# If dockerfile failed install manually # If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script" echo "Bashio does not exist, executing script"
@@ -7,29 +6,23 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \ apt-get clean \
apt-get update \ && apt-get update \
apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
jq \ || apk add --no-cache ${PACKAGES}
curl \
cifs-utils \
keyutils \
samba \
smbclient
################## ###################
# Install bashio # # Install bashio #
################## ##################
curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" && mkdir -p /tmp/bashio
mkdir /tmp/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar zxvf \ tar -xzf - --strip 1 -C /tmp/bashio
/tmp/bashio.tar.gz \ mv /tmp/bashio/lib /usr/lib/bashio
--strip 1 -C /tmp/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio
mv /tmp/bashio/lib /usr/lib/bashio && rm -rf /tmp/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio &&
rm -fr \
/tmp/*
) >/dev/null ) >/dev/null

View File

@@ -7,21 +7,15 @@ COPY rootfs /
# Base system # Base system
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ARG TEMPIO_VERSION=2021.01.0
ARG BUILD_ARCH ARG BUILD_ARCH
ENV PACKAGES="jq \
curl \
cifs-utils \
nginx"
RUN \ RUN \
# Add apps # Add apps
apk add --no-cache \ apk add --no-cache ${PACKAGES} \
jq \
curl \
cifs-utils \
nginx \
\
# 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 \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -6,11 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache \ PACKAGES="${PACKAGES:="curl"}"
jq \
curl \ apt-get clean \
cifs-utils \ && apt-get update \
nginx && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #
@@ -23,13 +24,6 @@ if [ ! -f "/usr/bin/bashio" ]; then
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
###################
# 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
) >/dev/null ) >/dev/null
fi fi

View File

@@ -3,6 +3,12 @@ ARG BUILD_VERSION
ARG BUILD_UPSTREAM="3.0.6.1342" ARG BUILD_UPSTREAM="3.0.6.1342"
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \ RUN \
################ ################
@@ -10,13 +16,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
\ \
################## ##################
# Install bashio # # Install bashio #

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -2,13 +2,14 @@ ARG BUILD_FROM
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \
# Add bashio
RUN apk add --no-cache \
curl \
jq \ jq \
samba \ samba \
samba-client \ samba-client"
# Add bashio
RUN apk add --no-cache ${PACKAGES} \
\
&& curl -J -L -o /tmp/bashio.tar.gz \ && curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \ && mkdir /tmp/bashio \
@@ -18,9 +19,10 @@ RUN apk add --no-cache \
\ \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/bashio.tar.gz \ && rm -fr /tmp/bashio.tar.gz || true
\
&& ln -s /usr/share/transmission/web/style /transmission-web-control && \ RUN \
ln -s /usr/share/transmission/web/style /transmission-web-control && \
ln -s /usr/share/transmission/web/images /transmission-web-control && \ ln -s /usr/share/transmission/web/images /transmission-web-control && \
ln -s /usr/share/transmission/web/javascript /transmission-web-control && \ ln -s /usr/share/transmission/web/javascript /transmission-web-control && \
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -3,14 +3,15 @@ ARG BUILD_VERSION
ARG BUILD_UPSTREAM="2.1.2" ARG BUILD_UPSTREAM="2.1.2"
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3 ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \
# Add bashio
RUN apk add --no-cache \
curl \
jq \ jq \
moreutils \ moreutils \
samba \ samba \
nginx \ nginx"
# Add bashio
RUN apk add --no-cache ${PACKAGES} \
\
&& curl -J -L -o /tmp/bashio.tar.gz \ && curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \ && mkdir /tmp/bashio \
@@ -20,7 +21,7 @@ RUN apk add --no-cache \
\ \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/bashio.tar.gz && rm -fr /tmp/bashio.tar.gz || true
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi

View File

@@ -13,7 +13,7 @@ RUN \
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache $PACKAGES \ apk add --no-cache ${PACKAGES} \
\ \
################### ###################
# Install bashio # # Install bashio #

View File

@@ -6,8 +6,13 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apk add --no-cache $PACKAGES PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
################### ###################
# Install bashio # # Install bashio #
################## ##################
@@ -18,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -6,6 +6,9 @@ ENV BASHIO_VERSION=0.14.3
ENV WEBTREES_HOME="/data/webtrees" ENV WEBTREES_HOME="/data/webtrees"
WORKDIR $WEBTREES_HOME WORKDIR $WEBTREES_HOME
VOLUME ["/data"] VOLUME ["/data"]
ENV PACKAGES="jq \
curl \
yamllint"
RUN \ RUN \
################ ################
@@ -13,10 +16,7 @@ RUN \
################ ################
apt-get clean \ apt-get clean \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y --no-install-recommends ${PACKAGES} \
jq \
curl \
yamllint \
&& apt-get clean \ && apt-get clean \
\ \
################## ##################

View File

@@ -6,13 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################ ################
# Install apps # # Install apps #
################ ################
apt-get clean PACKAGES="${PACKAGES:="curl"}"
apt-get update
apt-get install -y \ apt-get clean \
jq \ && apt-get update \
yamllint \ && apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
curl && || apk add --no-cache ${PACKAGES}
apt-get clean
################### ###################
# Install bashio # # Install bashio #
@@ -24,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
mv /tmp/bashio/lib /usr/lib/bashio mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio rm -rf /tmp/bashio
) >/dev/null ) >/dev/null
fi fi

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# If dockerfile failed install manually
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
################
# Install apps #
################
PACKAGES="${PACKAGES:="curl"}"
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends ${PACKAGES} 2>/dev/null \
|| apk add --no-cache ${PACKAGES}
###################
# Install bashio #
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
) >/dev/null
fi