Skip to content

Commit 86e5007

Browse files
committed
fix telegraf & influxdb services ulimits in telegraf image
1 parent 1c62657 commit 86e5007

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: telegraf/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ RUN wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb_${INF
3131
dpkg -i influxdb_${INFLUXDB_VERSION}_amd64.deb && \
3232
rm -f influxdb_${INFLUXDB_VERSION}_amd64.deb*
3333

34+
# Update init scripts to not claim ulimit -n greater than 512 to be able to run services in rootnroll.
35+
RUN sed -i -e 's/^OPEN_FILE_LIMIT=.*/OPEN_FILE_LIMIT=512/' /etc/init.d/telegraf \
36+
&& sed -i -e 's/^OPEN_FILE_LIMIT=.*/OPEN_FILE_LIMIT=512/' /etc/init.d/influxdb
37+
3438
WORKDIR /home/box
3539
COPY docker-entrypoint.sh /
3640
ENTRYPOINT ["/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)