Skip to content

Commit

Permalink
use bash script instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 11, 2023
1 parent d3f934c commit 82f7011
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion docker/init.iql

This file was deleted.

3 changes: 3 additions & 0 deletions docker/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "influx -execute 'CREATE DATABASE $DB_NAME;'" | /bin/sh

0 comments on commit 82f7011

Please sign in to comment.