mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-05-29 22:07:56 +01:00
[adsb-multi-portal-feeder] Fix memory consumption issue on Docker v3
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user