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
ENV PACKAGES="git moreutils"
RUN \
apk add --no-cache $PACKAGES \
apk add --no-cache ${PACKAGES} \
&& pip install --upgrade pip \
&& pip install lastversion

View File

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

View File

@@ -2,27 +2,18 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client"
RUN \
###############################
# Install apps test both dist #
###############################
apt-get clean \
&& 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 \
apk add --no-cache ${PACKAGES} \
\
##################
# Install bashio #
@@ -32,7 +23,7 @@ RUN \
| 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
&& rm -rf /tmp/bashio || true
RUN \
# 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
# hadolint ignore=DL3009
ENV PACKAGES="libmariadb-dev-compat \
libpq5 \
nginx \
sqlite3"
RUN \
apt-get clean \
&& apt-get update \
\
&& apt-get install -y --no-install-recommends \
libmariadb-dev-compat \
libpq5 \
nginx \
sqlite3 \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get clean \
&& rm -f -r \
/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
FROM linuxserver/booksonic-air:latest
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
###################
# Install bashio #

View File

@@ -6,15 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean
apt-get update
apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient
apt-get clean
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 #
@@ -26,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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

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

View File

@@ -6,16 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
nginx &&
apt-get clean
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 #
@@ -27,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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,11 +2,11 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq"
# Install bashio
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
##################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
samba \
smbclient"
# Install bashio
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ARG TEMPIO_VERSION=2021.01.0
ENV PACKAGES="jq \
cifs-utils \
keyutils \
samba \
smbclient"
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -13,12 +17,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #
@@ -28,13 +27,14 @@ RUN \
| 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 \
\
&& rm -rf /tmp/bashio || true
RUN \
#############################
# 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/{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 \

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
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
yamllin"
# Copy root filesystem
COPY rootfs /
@@ -14,10 +17,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
yamllint \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get clean \
\
##################

View File

@@ -3,17 +3,15 @@
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
(
# Remove errors on apt-get
export DEBIAN_FRONTEND=noninteractive
################
# Install apps #
################
apt-get clean
apt-get update
apt-get install -yq --no-install-recommends \
jq \
curl \
yamllint
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 #
@@ -25,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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,7 +3,6 @@ ARG BUILD_UPSTREAM="2.19.0"
FROM hurlenko/filebrowser:v${BUILD_UPSTREAM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \
jq \
bash \
@@ -18,7 +17,7 @@ RUN \
################
# Install apps #
################
apk add --no-cache $PACKAGES \
apk add --no-cache ${PACKAGES} \
\
##################
# Install bashio #

View File

@@ -6,7 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# 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 #

View File

@@ -2,6 +2,7 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM freqtradeorg/freqtrade:latest
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq git"
USER root
COPY rootfs /
@@ -11,7 +12,7 @@ RUN \
# Install apps #
################
apt-get update \
&& apt-get install -y --no-install-recommends jq git \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
###################
# Install bashio #
@@ -21,7 +22,7 @@ RUN \
| 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
&& rm -rf /tmp/bashio || true
VOLUME [ "/data" ]
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
ENV BASHIO_VERSION=0.14.3
ENV TZ=Europe/Paris
ENV PACKAGES="jq \
curl \
yamllint"
# Copy root filesystem
COPY rootfs /
@@ -13,10 +16,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
yamllint \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get clean \
\
##################

View File

@@ -6,12 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y \
jq \
curl \
yamllint
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 #
@@ -23,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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,26 +2,18 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
samba-client"
RUN \
################
# Install apps #
################
apt-get clean \
&& 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 \
apk add --no-cache ${PACKAGES} \
\
###################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl"
RUN \
################
# Install apps #
################
apk add --no-cache ${PACKAGES} \
\
##################
# 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" \
&& mkdir /tmp/bashio \
&& tar zxvf \
@@ -16,7 +22,7 @@ RUN \
\
&& mv /tmp/bashio/lib /usr/lib/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
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
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
samba \
cifs-utils \
smbclient"
RUN apt-get update \
\
&& apt-get install -y --no-install-recommends \
jq \
samba \
smbclient \
\
&& apt-get -y upgrade cifs-utils \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# 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
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl"
USER root
RUN \
################
@@ -10,10 +12,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
# nginx \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #

View File

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

View File

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

View File

@@ -6,25 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba ||
(
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba
)
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 #
@@ -36,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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,14 +2,14 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="curl \
jq"
RUN \
################
# Install apps #
################
apk add --no-cache \
curl \
jq \
apk add --no-cache ${PACKAGES} \
\
###################
# Install bashio #
@@ -19,14 +19,14 @@ RUN \
| 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 \
\
&& rm -rf /tmp/bashio || true
RUN \
########################################
# Correct upstream image folders links #
########################################
\
# 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/{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
ENV BASHIO_VERSION=0.14.3
ENV PAPERLESS_DATA_DIR=/config/paperless_ng
RUN apt-get update && \
\
apt-get clean && \
apt-get update && \
apt-get install -y --no-install-recommends \
jq \
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba \
yamllint \
yamllint"
RUN apt-get clean && \
apt-get update && \
apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #
@@ -27,7 +25,7 @@ RUN apt-get update && \
| 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
&& rm -rf /tmp/bashio || true
# copy local files
COPY rootfs/ /

View File

@@ -6,17 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba \
yamllint
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 #
@@ -28,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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

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

View File

@@ -6,23 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean &&
apt-get update &&
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
smbclient \
samba ||
apk update &&
apk add --no-cache \
jq \
curl \
cifs-utils \
keyutils \
samba-client \
samba
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 #
@@ -34,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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

@@ -7,6 +7,13 @@ FROM photoprism/photoprism:preview
COPY rootfs /
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
coreutils"
RUN \
################
@@ -14,14 +21,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
coreutils \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #
@@ -31,14 +31,15 @@ RUN \
| 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 \
\
&& rm -rf /tmp/bashio || true
RUN \
###################
# Configure image #
###################
\
# Create directories
&& mkdir -m 777 -p \
mkdir -m 777 -p \
/data/photoprism/originals \
/data/photoprism/import \
/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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils"
# Copy root filesystem
COPY rootfs /
@@ -10,10 +13,7 @@ VOLUME [ "/data" ]
RUN \
# Install bashio
apk add --no-cache \
jq \
curl \
cifs-utils \
apk add --no-cache ${PACKAGES} \
\
&& curl -J -L -o /tmp/bashio.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 \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
\
/tmp/* || true
RUN \
# 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 \

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/ /
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
# Install apps #
################
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #
@@ -30,13 +31,14 @@ RUN \
| 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 \
\
&& rm -rf /tmp/bashio || true
RUN \
#############################
# 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/{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 \

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
ARG BUILD_ARCH=amd64
ARG BUILD_UPSTREAM="2.9.3"
ENV PACKAGES="nginx"
RUN \
if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \
&& if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \
@@ -19,8 +21,7 @@ RUN \
| tar zxvf - -C /opt/
RUN \
apk add --no-cache \
nginx || true
apk add --no-cache ${PACKAGES} || true
# Copy root filesystem
COPY rootfs /

View File

@@ -1,3 +1,29 @@
#!/bin/bash
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
###################
# 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 update \
&& apt-get install -y ${PACKAGES} \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
&& apt-get clean \
\
##############

View File

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

View File

@@ -2,6 +2,12 @@ ARG BUILD_FROM
ARG BUILD_VERSION
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
###################
# Install bashio #
@@ -25,10 +25,11 @@ RUN \
| 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 \
\
&& rm -rf /tmp/bashio || true
RUN \
# 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 \
\
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
###################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -9,13 +15,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# Install bashio #

View File

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

View File

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

View File

@@ -6,11 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apk add --no-cache \
jq \
curl \
cifs-utils \
nginx
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 #
@@ -23,13 +24,6 @@ if [ ! -f "/usr/bin/bashio" ]; then
ln -s /usr/lib/bashio/bashio /usr/bin/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
fi

View File

@@ -3,6 +3,12 @@ ARG BUILD_VERSION
ARG BUILD_UPSTREAM="3.0.6.1342"
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
ENV PACKAGES="jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient"
RUN \
################
@@ -10,13 +16,7 @@ RUN \
################
apt-get clean \
&& apt-get update \
&& apt-get install -y \
jq \
curl \
cifs-utils \
keyutils \
samba \
smbclient \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
\
##################
# 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
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
# Add bashio
RUN apk add --no-cache \
curl \
ENV PACKAGES="curl \
jq \
samba \
samba-client \
samba-client"
# Add bashio
RUN apk add --no-cache ${PACKAGES} \
\
&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \
@@ -18,9 +19,10 @@ RUN apk add --no-cache \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr /tmp/bashio.tar.gz \
\
&& ln -s /usr/share/transmission/web/style /transmission-web-control && \
&& rm -fr /tmp/bashio.tar.gz || true
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/javascript /transmission-web-control && \
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"
FROM ${BUILD_FROM}
ENV BASHIO_VERSION=0.14.3
# Add bashio
RUN apk add --no-cache \
curl \
ENV PACKAGES="curl \
jq \
moreutils \
samba \
nginx \
nginx"
# Add bashio
RUN apk add --no-cache ${PACKAGES} \
\
&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
&& mkdir /tmp/bashio \
@@ -20,7 +21,7 @@ RUN apk add --no-cache \
\
&& mv /tmp/bashio/lib /usr/lib/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 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 #
################
apk add --no-cache $PACKAGES \
apk add --no-cache ${PACKAGES} \
\
###################
# Install bashio #

View File

@@ -6,8 +6,13 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# 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 #
##################
@@ -18,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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

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

View File

@@ -6,13 +6,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
################
# Install apps #
################
apt-get clean
apt-get update
apt-get install -y \
jq \
yamllint \
curl &&
apt-get clean
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 #
@@ -24,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then
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

@@ -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