Skip to content

Commit

Permalink
Update init-test.sh process
Browse files Browse the repository at this point in the history
  • Loading branch information
clementpl committed Mar 21, 2019
1 parent 8a9f7ca commit 3f2a3f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/influx/init-test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
path=$(dirname "$0")
# Copy data
docker exec influxdb rm -rf /testset
docker cp $path/testset influxdb:/
# Drop database
curl -XPOST "http://127.0.0.1:8086/query" --data-urlencode "q=DROP DATABASE \"test_crypto_series\""
# Restore database
docker exec influxdb influxd restore -portable -db test_crypto_series /testset

# Make backup
Expand Down

0 comments on commit 3f2a3f6

Please sign in to comment.