Skip to content

Commit e2a06d2

Browse files
committed
changed influxdb mount location to /mnt/influxdb
1 parent 78652ab commit e2a06d2

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
# privileged added so usb drive can be mounted.
1010
privileged: true
1111
volumes:
12-
- 'influxdb-data:/mnt/usbdrive'
12+
- 'influxdb-data:/mnt/influxdb'
1313
ports:
1414
# The API for InfluxDB is served on port 8086
1515
- "8086:8086"

influxdb/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM arm32v7/influxdb:latest
22

3-
RUN echo "LABEL=influxdb2 /mnt/usbdrive ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
3+
# The following instruction defines the mount location where the influxdb data should be stored.
4+
RUN echo "LABEL=influxdb /mnt/influxdb ext4 rw,relatime,discard,data=ordered 0 2" >> /etc/fstab
45

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

influxdb/influxdb.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[meta]
2-
dir = "/mnt/usbdrive/influxdb/meta"
2+
dir = "/mnt/influxdb/meta"
33

44
[data]
5-
dir = "/mnt/usbdrive/influxdb/data"
5+
dir = "/mnt/influxdb/data"
66
engine = "tsm1"
7-
wal-dir = "/mnt/usbdrive/influxdb/wal"
7+
wal-dir = "/mnt/influxdb/wal"

influxdb/my_entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/bin/bash
22
# JVA 2018-11-15 I have added following instructions to mount usbdrive and create subfolder influxdb
3-
mkdir -p /mnt/usbdrive
4-
mount /mnt/usbdrive
5-
6-
mkdir -p /mnt/usbdrive/influxdb
3+
mkdir -p /mnt/influxdb
4+
mount /mnt/influxdb
75

86
# here below copy paste of original entrypoint.sh. see :
97
# https://github.com/influxdata/influxdata-docker/tree/35d89882b57f333d9518b4556e7b872ce970e620/influxdb/1.7

0 commit comments

Comments
 (0)