Public Repository

Last pushed: 6 months ago
Short Description
Docker image for InfluxDB on ARM
Full Description

rpi-influxdb
Raspberry Pi compatible Docker base image with InfluxDB, an open source database written in Go specifically to handle time series data with high availability and high performance requirements.

Build Details
Source Project Page
Source Repository
Dockerfile
DockerHub
Build the Docker Image
make build
Run the Docker Image and get the version of installed InfluxDB client
make version
Push the Docker Image to the Docker Hub
First use a docker login with username, password and email address
Second push the Docker Image to the official Docker Hub
make push
Running your InfluxDB image
Start your image binding the external port 8086 of your containers:

docker run -d -p 8086:8086 hypriot/rpi-influxdb
Docker containers are easy to delete. If you are serious about keeping InfluxDB data persistently, then consider adding a volume mapping to the containers /data folder:

docker run -d --volume=/var/influxdb:/data -p 8086:8086 hypriot/rpi-influxdb
Configuring your InfluxDB
You can use the RESTful API to talk to InfluxDB on port 8086. Use the new influx cli tool to configure the database. While the container is running, you launch the tool with the following command:

docker exec -it <influxdb-container-name> /usr/bin/influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 1.1.1.1
InfluxDB shell 1.1.1.1
>
Initially create Database
Use -e PRE_CREATE_DB="db1;db2;db3" to create database named "db1", "db2", and "db3" on the first time the container starts automatically. Each database name is separated by ;. For example:

docker run -d -p 8086:8086 -e ADMIN_USER="root" -e INFLUXDB_INIT_PWD="somepassword" -e PRE_CREATE_DB="db1;db2;db3" hypriot/rpi-influxdb:latest

Alternatively, create a database and user with the InfluxDB 1.1 shell:

CREATE DATABASE db1
SHOW DATABASES

name: databases

name
db1
USE db1
CREATE USER root WITH PASSWORD 'somepassword' WITH ALL PRIVILEGES
GRANT ALL PRIVILEGES ON db1 TO root
SHOW USERS
user admin
root true

Docker Pull Command
Owner
rastydnb