diff --git a/docker/Dockerfile b/docker/Dockerfile index a163562..faab05e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,4 +3,4 @@ FROM influxdb:1.8 # add init.sh to initdb entry point so it's run on container start RUN mkdir -p /docker-entrypoint-initdb.d/ -COPY ./docker/init.iql /docker-entrypoint-initdb.d +COPY ./docker/init.sh /docker-entrypoint-initdb.d diff --git a/docker/init.iql b/docker/init.iql deleted file mode 100644 index bd6eb99..0000000 --- a/docker/init.iql +++ /dev/null @@ -1 +0,0 @@ -CREATE DATABASE $DB_NAME; \ No newline at end of file diff --git a/docker/init.sh b/docker/init.sh new file mode 100644 index 0000000..ce8edea --- /dev/null +++ b/docker/init.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "influx -execute 'CREATE DATABASE $DB_NAME;'" | /bin/sh