diff --git a/cellar-influxdb/README.md b/cellar-influxdb/README.md index fd660e6..764486b 100644 --- a/cellar-influxdb/README.md +++ b/cellar-influxdb/README.md @@ -1,22 +1,30 @@ -Run influxdb locally +# Run influxdb locally ```bash -$ docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:2.0.0-rc +$ docker run --name influxdb -p 8086:8086 quay.io/influxdb/influxdb:v2.0.1 or $ docker start influxdb ``` -cellar / robottle - for the CLI ```bash $ docker exec -it influxdb /bin/bash ``` -https://app-f68769bb-2fc0-4537-aae3-e3441ce75c81.cleverapps.io - +# Currently running 'PROD' on a clever cloud app. + ```config CC_DOCKER_EXPOSED_HTTP_PORT 8086 CC_DOCKERFILE cellar-influxdb/Dockerfile PORT 8080 -``` \ No newline at end of file +``` + +to deploy a new version : + +``` +$ git remote -u clever master # you need to have the remote setup first +``` + +## Backup and Restore + +WIP. See `backup.sh` and `restore.sh` \ No newline at end of file diff --git a/cellar-influxdb/backup.sh b/cellar-influxdb/backup.sh new file mode 100755 index 0000000..f308d37 --- /dev/null +++ b/cellar-influxdb/backup.sh @@ -0,0 +1 @@ +influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST \ No newline at end of file diff --git a/cellar-influxdb/restore.sh b/cellar-influxdb/restore.sh new file mode 100755 index 0000000..3a9bfc1 --- /dev/null +++ b/cellar-influxdb/restore.sh @@ -0,0 +1 @@ +influx restore $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN \ No newline at end of file