Skip to content

Commit 5553303

Browse files
committed
added documentation
1 parent ce74cbf commit 5553303

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

influxdb/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM arm32v7/influxdb:latest
22

3-
# The following instruction defines the mount location where the influxdb data should be stored.
4-
# In this case it is referring to an USB memory stick with label "influxdb" that is formatted in "ext4" format.
5-
# If there is no such USB drive connected to the device then the named volume specified in the
6-
# docker compose will be used.
3+
# If the following instruction refers to an existing USB drive (e.g. memory stick) connected to the device
4+
# then it will use that drive for storing in the influxdb otherwise it will use the named volume
5+
# that is specified in the docker compose yaml file.
76
#
8-
RUN echo "LABEL=influxdb2 /mnt/influxdb ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
7+
# So the instruction below refers to a connected USB drive with label "influxdb" which should be in "ext4" format.
8+
RUN echo "LABEL=influxdb /mnt/influxdb ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
99

1010
# The script "my_entrypoint.sh" is an extension of the existing script with extra instructions to mount the usb memory stick.
1111
COPY my_entrypoint.sh /entrypoint.sh

0 commit comments

Comments
 (0)