[adsb-multi-portal-feeder] Fix memory consumption issue on Docker v3

This commit is contained in:
Max Winterstein
2023-04-21 09:17:34 +02:00
committed by GitHub
parent 4d44144ee4
commit 4f7d8d7a24
3 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -18,6 +18,9 @@ COPY export-env-from-config.sh /export-env-from-config.sh
RUN find /etc/s6-overlay/s6-rc.d/ -name script | xargs sed -i '1 a\source /export-env-from-config.sh'
RUN find /etc/s6-overlay/s6-rc.d/ -name run | xargs sed -i '1 a\source /export-env-from-config.sh'
# Fix memory issue for e.g. HA OS 10 - see https://github.com/MaxWinterstein/homeassistant-addons/issues/149
RUN sed -i '5 a\ ulimit -n 1048576' /etc/s6-overlay/s6-rc.d/http/run
ENV TZ=UTC
# Add the nice banner
@@ -33,6 +36,3 @@ RUN mkdir -p /etc/s6-overlay/s6-rc.d/banner && \
# enhance timeout, as sometimes the api calls are slow (rate limited?)
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=30000
# Fix memory issue for e.g. HA OS 10 - see https://github.com/MaxWinterstein/homeassistant-addons/issues/149
RUN ulimit -n 1048576