Skip to content

Commit

Permalink
Converted the POST parameters to JSON (isDefault didn't work with for…
Browse files Browse the repository at this point in the history
…m params)
  • Loading branch information
gbts committed Apr 20, 2017
1 parent 787beb0 commit 5ab0529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.grafana
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ RUN mkdir /var/lib/grafanadb
ENV GF_PATHS_DATA /var/lib/grafanadb

# Init Grafana sqlite db and preconfigure our data source to be our influxdb k6 db
RUN bash -c '/run.sh & sleep 15 && curl -s -X POST \
--data "name=myinfluxdb&type=influxdb&access=proxy&url=http://influxdb:8086&database=k6&isDefault=true" http://admin:admin@localhost:3000/api/datasources \
RUN bash -c '/run.sh & sleep 15 && curl -s -H "Content-Type: application/json" -X POST \
--data '"'"'{"name": "myinfluxdb", "type": "influxdb", "access": "proxy", "url": "http://influxdb:8086", "database": "k6", "isDefault": true}'"'"' \
http://admin:admin@localhost:3000/api/datasources \
&& kill -SIGINT %%'


Expand Down

0 comments on commit 5ab0529

Please sign in to comment.