Skip to content

Commit f17e272

Browse files
committed
mounting USB drive in influxdb container
1 parent 16e8dd6 commit f17e272

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

influxdb/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM arm32v7/influxdb:latest
2+
23
RUN echo "LABEL=influxdb /mnt/usbdrive ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
3-
#overwrite the default entrypoint script by mine script that contains the mount instruction
4+
5+
# The script "my_entrypoint.sh" is an extension of the existing script with extra instructions to mount the usb memory stick.
46
COPY my_entrypoint.sh /entrypoint.sh
7+
RUN chmod +x /entrypoint.sh

influxdb/my_entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
mkdir -p /mnt/usbdrive
44
mount /mnt/usbdrive
55

6-
# here below original entrypoint.sh (see https://github.com/influxdata/influxdata-docker/tree/35d89882b57f333d9518b4556e7b872ce970e620/influxdb/1.7)
6+
# here below copy paste of original entrypoint.sh. see :
7+
# https://github.com/influxdata/influxdata-docker/tree/35d89882b57f333d9518b4556e7b872ce970e620/influxdb/1.7
78
set -e
89

910
if [ "${1:0:1}" = '-' ]; then

0 commit comments

Comments
 (0)