mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-19 03:19:01 +02:00
@@ -1,7 +1,6 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### v7.2.0-beta.1 (coming soon)
|
### v7.2.0-beta.1 (coming soon)
|
||||||
* switch from apt-get to apt
|
|
||||||
* add env PERMISSION_CHECK ([#251](https://github.com/buanet/ioBroker.docker/issues/251))
|
* add env PERMISSION_CHECK ([#251](https://github.com/buanet/ioBroker.docker/issues/251))
|
||||||
* add some more DEBUG messages to log
|
* add some more DEBUG messages to log
|
||||||
* add env IOB_BACKITUP_EXTDB to unlock external db backups in backitup adapter
|
* add env IOB_BACKITUP_EXTDB to unlock external db backups in backitup adapter
|
||||||
|
|||||||
10
debian/node16/Dockerfile
vendored
10
debian/node16/Dockerfile
vendored
@@ -13,7 +13,7 @@ LABEL org.opencontainers.image.title="Official ioBroker Docker Image" \
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# Install prerequisites (including node) and generating locales
|
# Install prerequisites (including node) and generating locales
|
||||||
RUN apt update && apt install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
cifs-utils \
|
cifs-utils \
|
||||||
curl \
|
curl \
|
||||||
@@ -32,7 +32,7 @@ RUN apt update && apt install -y \
|
|||||||
wget \
|
wget \
|
||||||
# Install node
|
# Install node
|
||||||
&& curl -sL https://deb.nodesource.com/setup_16.x | bash \
|
&& curl -sL https://deb.nodesource.com/setup_16.x | bash \
|
||||||
&& apt update && apt install -y nodejs \
|
&& apt-get update && apt-get install -y nodejs \
|
||||||
# Install node-gyp
|
# Install node-gyp
|
||||||
&& npm install -g node-gyp \
|
&& npm install -g node-gyp \
|
||||||
# Generating locales
|
# Generating locales
|
||||||
@@ -68,9 +68,9 @@ RUN mkdir -p /opt/scripts/.docker_config/ \
|
|||||||
&& chown root:iobroker /usr/sbin/gosu \
|
&& chown root:iobroker /usr/sbin/gosu \
|
||||||
&& chmod +s /usr/sbin/gosu \
|
&& chmod +s /usr/sbin/gosu \
|
||||||
# Clean up installation cache
|
# Clean up installation cache
|
||||||
&& apt autoclean -y \
|
&& apt-get autoclean -y \
|
||||||
&& apt autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /tmp/* /var/tmp/* \
|
&& rm -rf /tmp/* /var/tmp/* \
|
||||||
&& rm -rf /root/.cache/* /root/.npm/* \
|
&& rm -rf /root/.cache/* /root/.npm/* \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
10
debian/node18/Dockerfile
vendored
10
debian/node18/Dockerfile
vendored
@@ -13,7 +13,7 @@ LABEL org.opencontainers.image.title="Official ioBroker Docker Image" \
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
# Install prerequisites (including node) and generating locales
|
# Install prerequisites (including node) and generating locales
|
||||||
RUN apt update && apt install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
cifs-utils \
|
cifs-utils \
|
||||||
curl \
|
curl \
|
||||||
@@ -32,7 +32,7 @@ RUN apt update && apt install -y \
|
|||||||
wget \
|
wget \
|
||||||
# Install node
|
# Install node
|
||||||
&& curl -sL https://deb.nodesource.com/setup_18.x | bash \
|
&& curl -sL https://deb.nodesource.com/setup_18.x | bash \
|
||||||
&& apt update && apt install -y nodejs \
|
&& apt-get update && apt-get install -y nodejs \
|
||||||
# Install node-gyp
|
# Install node-gyp
|
||||||
&& npm install -g node-gyp \
|
&& npm install -g node-gyp \
|
||||||
# Generating locales
|
# Generating locales
|
||||||
@@ -68,9 +68,9 @@ RUN mkdir -p /opt/scripts/.docker_config/ \
|
|||||||
&& chown root:iobroker /usr/sbin/gosu \
|
&& chown root:iobroker /usr/sbin/gosu \
|
||||||
&& chmod +s /usr/sbin/gosu \
|
&& chmod +s /usr/sbin/gosu \
|
||||||
# Clean up installation cache
|
# Clean up installation cache
|
||||||
&& apt autoclean -y \
|
&& apt-get autoclean -y \
|
||||||
&& apt autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /tmp/* /var/tmp/* \
|
&& rm -rf /tmp/* /var/tmp/* \
|
||||||
&& rm -rf /root/.cache/* /root/.npm/* \
|
&& rm -rf /root/.cache/* /root/.npm/* \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
10
debian/scripts/setup_packages.sh
vendored
10
debian/scripts/setup_packages.sh
vendored
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
if [ $1 == "-install" ]
|
if [ $1 == "-install" ]
|
||||||
then
|
then
|
||||||
apt -qq update
|
apt-get -qq update
|
||||||
packages=$(cat /opt/scripts/.docker_config/.packages)
|
packages=$(cat /opt/scripts/.docker_config/.packages)
|
||||||
for i in $packages; do
|
for i in $packages; do
|
||||||
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ];
|
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ];
|
||||||
then
|
then
|
||||||
echo "$i is not installed. Installing..."
|
echo "$i is not installed. Installing..."
|
||||||
sudo apt -qq -y install $i
|
sudo apt-get -qq -y install $i
|
||||||
echo "Done."
|
echo "Done."
|
||||||
else
|
else
|
||||||
echo "$i is already installed."
|
echo "$i is already installed."
|
||||||
@@ -16,15 +16,15 @@ then
|
|||||||
done
|
done
|
||||||
elif [ $1 == "-update" ]
|
elif [ $1 == "-update" ]
|
||||||
then
|
then
|
||||||
apt -qq update
|
apt-get -qq update
|
||||||
apt -qq -y upgrade
|
apt-get -qq -y upgrade
|
||||||
else
|
else
|
||||||
echo "No paramerter found!"
|
echo "No paramerter found!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Silent Cleanup
|
# Silent Cleanup
|
||||||
apt -qq autoclean -y && apt -qq autoremove && apt -qq clean
|
apt-get -qq autoclean -y && apt-get -qq autoremove && apt-get -qq clean
|
||||||
rm -rf /tmp/* /var/tmp/* && rm -rf /root/.cache/* && rm -rf /var/lib/apt/lists/* && rm -f /opt/scripts/.docker_config/.packages
|
rm -rf /tmp/* /var/tmp/* && rm -rf /root/.cache/* && rm -rf /var/lib/apt/lists/* && rm -f /opt/scripts/.docker_config/.packages
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user