Kai Mayer (a8e460ef) at 04 Apr 14:54
fix ApiTest.php
Kai Mayer (3a153e91) at 04 Apr 14:54
add $casts to models
Hey @chevdor,
I've just realized while trying to implement the authentication, that CREATE DATABASE
is no longer working in InfluxDB 2.x.
A database/bucket is now created via api/v2/buckets
by passing JSON to the API like this:
PAYLOAD="{\"orgID\":\"$INFLUXDB_ORGID\",\"name\":\"$DB\"}"
curl -S -s -XPOST "http://$INFLUXDB_HOST:$INFLUXDB_PORT/api/v2/buckets" \
-H "$AUTH" -H "application/json" -d "$PAYLOAD"
as well as needing a "database retention policy" mapped to the bucket. Implementing 2.x compatibility seems more difficult than anticipated, especially with my minimal bash knowledge xD
I hope you don't mind my two cents here :)
Apparently, InfluxDB auth is pretty easy as it just requires a token.
So you could basically just add two additional ENV variables INFLUXDB_VERSION
and INFLUXDB_TOKEN
and do something like this:
if [ $INFLUXDB_VERSION -eq 2 ]; then
curl -S -s -XPOST "http://$INFLUXDB_HOST:$INFLUXDB_PORT/write?db=$DB" --header "Authorization: Token $INFLUXDB_TOKEN" --data-binary "$PAYLOAD"
else
curl -S -s -XPOST "http://$INFLUXDB_HOST:$INFLUXDB_PORT/write?db=$DB" --data-binary "$PAYLOAD"
fi
It's the best I can come up with as I never wrote shell scripts xD
Kai Mayer (8da2ce0e) at 21 Mar 14:00
add placeholder prop to TextField
Kai Mayer (a02686c3) at 20 Mar 13:50
bugfix snackbar timeout
Kai Mayer (59b66d27) at 20 Mar 13:46
add ListingContainer
Kai Mayer (1c2dc81b) at 20 Mar 13:46
call coin endpoint on login and page refresh
... and 1 more commit
Kai Mayer (90dc7d43) at 20 Mar 13:44
add timeout and hide to snackbar/notifier
Kai Mayer (70e89c44) at 20 Mar 11:59
update response
Kai Mayer (aaf5fdd9) at 14 Mar 16:43
add prefix for system/coins/update route
Kai Mayer (0c5b376d) at 14 Mar 12:02
wip tests
Kai Mayer (1832f806) at 13 Mar 21:49
remove example files
Kai Mayer (b1e70d95) at 13 Mar 15:13
composer fix
Kai Mayer (f5ff38dd) at 13 Mar 15:12
massive codechange
I'm using the latest image in Rancher but it won't the the environment variable properly.
Environment Variables
INFLUXDB_HOST = 192.168.178.100
CRON = * * * * *
Networking > Use Host's Network Namespace > Yes
That's the output
Init cron task with '* * * * * root /usr/local/bin/run.sh' in '/etc/cron.d/speedtest-cron'
[...]
curl: (3) URL using bad/illegal format or missing URL
Init finished, the first test will run according to your cron task: /etc/cron.d/speedtest-cron:
* * * * * root /usr/local/bin/run.sh > /var/log/cron.log 2>&1
The data will be sent to 192.168.178.100:tcp://10.43.102.118:8086 in database speedtests...
Using any server