Sign inSign up

somsakc/armhf-influxdb

By somsakc

Updated over 9 years ago

Build InfluxDB official image on ARMV7 (Raspberry Pi) platform

Image
0

98

somsakc/armhf-influxdb repository overview

Build InfluxDB official image on ARMV7 (Raspberry Pi) platform by using official InfluxDB docker (cloning Git project from https://github.com/influxdata/influxdata-docker).

This porting is to convert Dockerfile for use Influxdb on Raspberri Pi platform (armhf). Initially, I prioritied to focus InfluxDB version 1.2 on Raspberri Pi Model B+ initially. I have built it on my board and did run test preliminary.

I use other armhf/debian:jessie (https://hub.docker.com/r/armhf/debian/) as starting image to build InfluxDB image.

Here is some output as I captured.

pi@raspberrypi:~/git/influxdata-docker/influxdb/1.2 $ docker run -it --rm 1f700d8c65fc 

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

[I] 2017-05-19T15:39:58Z InfluxDB starting, version 1.2.4, branch master, commit 77909d7c7826afe597b12d957996d6e16cd1afaa
[I] 2017-05-19T15:39:58Z Go version go1.7.4, GOMAXPROCS set to 4
[I] 2017-05-19T15:39:58Z Using configuration at: /etc/influxdb/influxdb.conf
[I] 2017-05-19T15:39:58Z Using data dir: /var/lib/influxdb/data service=store
[I] 2017-05-19T15:39:58Z opened service service=subscriber
[I] 2017-05-19T15:39:58Z Starting monitor system service=monitor
[I] 2017-05-19T15:39:58Z 'build' registered for diagnostics monitoring service=monitor
[I] 2017-05-19T15:39:58Z 'runtime' registered for diagnostics monitoring service=monitor
[I] 2017-05-19T15:39:58Z 'network' registered for diagnostics monitoring service=monitor
[I] 2017-05-19T15:39:58Z 'system' registered for diagnostics monitoring service=monitor
[I] 2017-05-19T15:39:58Z Starting precreation service with check interval of 10m0s, advance period of 30m0s service=shard-precreation
[I] 2017-05-19T15:39:58Z Starting snapshot service service=snapshot
[I] 2017-05-19T15:39:58Z Starting continuous query service service=continuous_querier
[I] 2017-05-19T15:39:58Z Starting HTTP service service=httpd
[I] 2017-05-19T15:39:58Z Storing statistics in database '_internal' retention policy 'monitor', at interval 10s service=monitor
[I] 2017-05-19T15:39:58Z Authentication enabled:false service=httpd
[I] 2017-05-19T15:39:58Z Listening on HTTP:[::]:8086 service=httpd
[I] 2017-05-19T15:39:58Z Starting retention policy enforcement service with check interval of 30m0s service=retention
[I] 2017-05-19T15:39:58Z Sending usage statistics to usage.influxdata.com
[I] 2017-05-19T15:39:58Z Listening for signals
[I] 2017-05-19T15:40:10Z /var/lib/influxdb/data/_internal/monitor/1 database index loaded in 91.51µs service=shard

#Run this image Running the container The InfluxDB image exposes a shared volume under /var/lib/influxdb, so you can mount a host directory to that point to access persisted container data. A typical invocation of the container might be:

$ docker run -p 8086:8086
-v $PWD:/var/lib/influxdb
influxdb Modify $PWD to the directory where you want to store data associated with the InfluxDB container.

You can also have Docker control the volume mountpoint by using a named volume.

$ docker run -p 8086:8086
-v influxdb:/var/lib/influxdb
influxdb

#Configuration InfluxDB can be either configured from a config file or using environment variables. To mount a configuration file and use it with the server, you can use this command:

Generate the default configuration file:

$ docker run --rm influxdb influxd config > influxdb.conf Modify the default configuration, which will now be available under $PWD. Then start the InfluxDB container.

$ docker run -p 8086:8086
-v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro
influxdb -config /etc/influxdb/influxdb.conf Modify $PWD to the directory where you want to store the configuration file.

Git Repository

You can get ported Dockerfile on my Git project at link below. https://github.com/somsakc/influxdata-docker/tree/master/influxdb/1.2

Tag summary

Content type

Image

Digest

Size

86.5 MB

Last updated

over 9 years ago

docker pull somsakc/armhf-influxdb:1.2.4