File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change
1
+ FROM chronograf:alpine
2
+
3
+ # see https://github.com/influxdata/influxdata-docker/pull/781
4
+ # this patch can be withdrawn if/when PR781 is applied.
5
+
6
+ COPY entrypoint.sh /entrypoint.sh
7
+
8
+ # EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ if [ " ${1: 0: 1} " = ' -' ]; then
5
+ set -- chronograf " $@ "
6
+ fi
7
+
8
+ if [ " $1 " = ' chronograf' ]; then
9
+ export BOLT_PATH=${BOLT_PATH:-/ var/ lib/ chronograf/ chronograf-v1.db}
10
+ fi
11
+
12
+ if [ $( id -u) -eq 0 ] ; then
13
+ if [ " ${CHRONOGRAF_AS_ROOT} " != " true" ] ; then
14
+ chown -Rc chronograf:chronograf /var/lib/chronograf
15
+ exec su-exec chronograf " $@ "
16
+ fi
17
+ chown -Rc root:root /var/lib/chronograf
18
+ else
19
+ if [ ! -w /var/lib/chronograf ] ; then
20
+ echo " You need to change ownership on chronograf's persistent store. Run:"
21
+ echo " sudo chown -R $( id -u) :$( id -u) /path/to/persistent/store"
22
+ fi
23
+ fi
24
+
25
+ exec " $@ "
Original file line number Diff line number Diff line change 1
1
chronograf :
2
2
container_name : chronograf
3
- image : chronograf:latest
3
+ build :
4
+ context : ./.templates/chronograf/.
4
5
restart : unless-stopped
5
6
environment :
6
7
- TZ=${TZ:-Etc/UTC}
10
11
# - INFLUXDB_PASSWORD=
11
12
# - INFLUXDB_ORG=
12
13
# - KAPACITOR_URL=http://kapacitor:9092
14
+ # - CHRONOGRAF_AS_ROOT=true
13
15
ports :
14
16
- " 8888:8888"
15
17
volumes :
16
18
- ./volumes/chronograf:/var/lib/chronograf
17
19
depends_on :
18
20
- influxdb
19
21
# - kapacitor
20
-
You can’t perform that action at this time.
0 commit comments