mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-02-01 03:09:02 +02:00
Merge pull request #56 from duffbeer2000/dev
Update README.md and include automatic restore to iobroker_startup.sh
This commit is contained in:
@@ -38,7 +38,7 @@ Since v3 is possible to set some environment variables to configure a new contai
|
||||
|AVAHI|false|Installs and activates avahi-daemon for supporting yahka-adapter, can be "true" or "false"|
|
||||
|LANG|de_DE.UTF‑8|The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8|
|
||||
|LANGUAGE|de_DE:de|The following locales are pre-generated: de_DE:de, en_US:en|
|
||||
|LC_ALL|de_DE|The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8|
|
||||
|LC_ALL|de_DE.UTF-8|The following locales are pre-generated: de_DE.UTF-8, en_US.UTF-8|
|
||||
|PACKAGES|vi|Installs additional packages to your container, needed by some adapters, packages should be seperated by whitespace like "package1 package2 package3"|
|
||||
|REDIS|false|Activates redis as states-db on startup, fill with "hostname:port" to set redis connection otherwise use "false"(beta)|
|
||||
|SETGID|1000|For security reasons it might be useful to specify the gid of the containers iobroker user to match an existing group on the docker host|
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
FROM balenalib/aarch64-debian:stretch
|
||||
|
||||
MAINTAINER Andre Germann <https://buanet.de>
|
||||
LABEL maintainer="Andre Germann" \
|
||||
url="<https://buanet.de>"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Install prerequisites (as listed in iobroker installer.sh)
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
acl \
|
||||
apt-utils \
|
||||
build-essential \
|
||||
|
||||
@@ -110,9 +110,26 @@ else
|
||||
then
|
||||
echo "Existing installation of ioBroker detected in /opt/iobroker."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
files=(/opt/iobroker/*)
|
||||
if [ ${#files[@]} -lt 2 ]; then
|
||||
if tar -ztvf /opt/iobroker/*.tar.gz "backup/backup.json" &> /dev/null; then
|
||||
echo "ioBroker Backup detected in /opt/iobroker. Restoring ioBroker..."
|
||||
mv /opt/iobroker/iobroker_20*.tar.gz /opt/
|
||||
tar -xf /opt/initial_iobroker.tar -C /
|
||||
mkdir /opt/iobroker/backups
|
||||
mv /opt/iobroker_20*.tar.gz /opt/iobroker/backups/
|
||||
iobroker restore 0
|
||||
echo "Done."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker or a valid backup file!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo ' '
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
FROM debian:stretch
|
||||
|
||||
MAINTAINER Andre Germann <https://buanet.de>
|
||||
LABEL maintainer="Andre Germann" \
|
||||
url="<https://buanet.de>"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Install prerequisites (as listed in iobroker installer.sh)
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
acl \
|
||||
apt-utils \
|
||||
build-essential \
|
||||
|
||||
@@ -110,9 +110,26 @@ else
|
||||
then
|
||||
echo "Existing installation of ioBroker detected in /opt/iobroker."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
files=(/opt/iobroker/*)
|
||||
if [ ${#files[@]} -lt 2 ]; then
|
||||
if tar -ztvf /opt/iobroker/*.tar.gz "backup/backup.json" &> /dev/null; then
|
||||
echo "ioBroker Backup detected in /opt/iobroker. Restoring ioBroker..."
|
||||
mv /opt/iobroker/iobroker_20*.tar.gz /opt/
|
||||
tar -xf /opt/initial_iobroker.tar -C /
|
||||
mkdir /opt/iobroker/backups
|
||||
mv /opt/iobroker_20*.tar.gz /opt/iobroker/backups/
|
||||
iobroker restore 0
|
||||
echo "Done."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker or a valid backup file!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo ' '
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
FROM balenalib/armv7hf-debian:stretch
|
||||
|
||||
MAINTAINER Andre Germann <https://buanet.de>
|
||||
|
||||
LABEL maintainer="Andre Germann" \
|
||||
url="<https://buanet.de>"
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
# Install prerequisites (as listed in iobroker installer.sh)
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
RUN apt-get update && apt-get install -y \
|
||||
acl \
|
||||
apt-utils \
|
||||
build-essential \
|
||||
|
||||
@@ -110,9 +110,26 @@ else
|
||||
then
|
||||
echo "Existing installation of ioBroker detected in /opt/iobroker."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
files=(/opt/iobroker/*)
|
||||
if [ ${#files[@]} -lt 2 ]; then
|
||||
if tar -ztvf /opt/iobroker/*.tar.gz "backup/backup.json" &> /dev/null; then
|
||||
echo "ioBroker Backup detected in /opt/iobroker. Restoring ioBroker..."
|
||||
mv /opt/iobroker/iobroker_20*.tar.gz /opt/
|
||||
tar -xf /opt/initial_iobroker.tar -C /
|
||||
mkdir /opt/iobroker/backups
|
||||
mv /opt/iobroker_20*.tar.gz /opt/iobroker/backups/
|
||||
iobroker restore 0
|
||||
echo "Done."
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker or a valid backup file!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "There is data detected in /opt/iobroker, but it looks like it is no instance of iobroker!"
|
||||
echo "Please check/ recreate mounted folder/ volume and restart ioBroker container."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo ' '
|
||||
|
||||
Reference in New Issue
Block a user