enhance dockerfile

This commit is contained in:
buanet
2023-03-08 09:06:27 +01:00
parent 632c7cd87e
commit a369647e13
2 changed files with 25 additions and 22 deletions

View File

@@ -1,16 +1,19 @@
## Changelog ## Changelog
### v8.0.0-beta.1 (20.02.2023)
* upgrade node version to recommended node18 ### v8.0.0 (coming soon)
* rewrite of multihost setup handling * enhance dockerfile, reduce image size ([#323](https://github.com/buanet/ioBroker.docker/issues/323))
* rewrite of custom objects and states db setup handling * v8.0.0-beta.1 (20.02.2023)
* enhance initial packages install/ update * upgrade node version to recommended node18
* enhance logging and error handling * rewrite of multihost setup handling
* add volume instruction to dockerfile * rewrite of custom objects and states db setup handling
* add support for password protected custom objects and states db ([#306](https://github.com/buanet/ioBroker.docker/issues/306)) * enhance initial packages install/ update
* add support for redis sentinel ([#311](https://github.com/buanet/ioBroker.docker/issues/311)) * enhance logging and error handling
* add restore command to maintenance script * add volume instruction to dockerfile
* add database connection check at startup * add support for password protected custom objects and states db ([#306](https://github.com/buanet/ioBroker.docker/issues/306))
* remove initial restore feature * add support for redis sentinel ([#311](https://github.com/buanet/ioBroker.docker/issues/311))
* add restore command to maintenance script
* add database connection check at startup
* remove initial restore feature
### v7.2.0 (12.12.2022) ### v7.2.0 (12.12.2022)
* update docs * update docs

View File

@@ -12,6 +12,10 @@ LABEL org.opencontainers.image.title="Official ioBroker Docker Image" \
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
# Copy scripts
COPY scripts /opt/scripts
COPY userscripts /opt/userscripts
# Install prerequisites (including node) and generating locales # Install prerequisites (including node) and generating locales
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
apt-utils \ apt-utils \
@@ -38,18 +42,14 @@ RUN apt-get update && apt-get install -y \
# Generating locales # Generating locales
&& sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \ && sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \
&& sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \ && sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen && locale-gen \
# Change permissions for scripts
# Create directorys and copy scripts && chmod 777 /opt/scripts/ \
COPY scripts /opt/scripts
COPY userscripts /opt/userscripts
RUN chmod 777 /opt/scripts/ \
&& chmod 777 /opt/userscripts/ \ && chmod 777 /opt/userscripts/ \
&& chmod +x /opt/scripts/*.sh \ && chmod +x /opt/scripts/*.sh \
&& chmod +x /opt/userscripts/*.sh && chmod +x /opt/userscripts/*.sh \
# Prepare
# Prepare and install ioBroker && mkdir -p /opt/scripts/.docker_config/ \
RUN mkdir -p /opt/scripts/.docker_config/ \
&& echo "starting" > /opt/scripts/.docker_config/.healthcheck \ && echo "starting" > /opt/scripts/.docker_config/.healthcheck \
&& echo "${VERSION}" > /opt/scripts/.docker_config/.thisisdocker \ && echo "${VERSION}" > /opt/scripts/.docker_config/.thisisdocker \
&& echo "true" > /opt/.first_run \ && echo "true" > /opt/.first_run \