Skip to content

Instantly share code, notes, and snippets.

@tywkeene
Last active Aug 29, 2015
Embed
What would you like to do?
#!/bin/bash
docker build -f Dockerfile.seed -t influxseed .
docker build -f Dockerfile.node -t influxnode .
bind-address = "0.0.0.0"
port = 8086
reporting-disabled = false
[initialization]
join-urls = "http://node0:8086"
[authentication]
enabled = false
[admin]
enabled = true
port = 8083
[api]
bind-address = ""
port = 8084
ssl-port = 0
ssl-cert = ""
read-timeout = "0"
[collectd]
bind-address = ""
port = 0
database = ""
enabled = false
typesdb = ""
[opentsdb]
address = ""
port = 0
enabled = false
database = ""
retention-policy = ""
[udp]
enabled = false
bind-address = ""
port = 0
[broker]
dir = "/root/.influxdb/broker"
enabled = true
truncation-interval = "10m0s"
max-topic-size = 1073741824
max-segment-size = 10485760
[raft]
apply-interval = "10ms"
election-timeout = "1s"
heartbeat-interval = "100ms"
reconnect-timeout = "10ms"
[data]
dir = "/root/.influxdb/data"
enabled = true
retention-auto-create = true
retention-check-enabled = true
retention-check-period = "10m0s"
retention-create-period = "45m0s"
[snapshot]
enabled = true
[logging]
http-access = true
write-tracing = false
raft-tracing = false
[monitoring]
enabled = false
write-interval = "1m0s"
[debugging]
pprof-enabled = false
[continuous_queries]
recompute-previous-n = 2
recompute-no-older-than = "10m0s"
compute-runs-per-interval = 10
compute-no-more-than = "2m0s"
disabled = false
hostname = "node0"
bind-address = "0.0.0.0"
port = 8086
reporting-disabled = false
[initialization]
join-urls = ""
[authentication]
enabled = false
[admin]
enabled = true
port = 8083
[api]
bind-address = ""
port = 8084
ssl-port = 0
ssl-cert = ""
read-timeout = "0"
[collectd]
bind-address = ""
port = 0
database = ""
enabled = false
typesdb = ""
[opentsdb]
address = ""
port = 0
enabled = false
database = ""
retention-policy = ""
[udp]
enabled = false
bind-address = ""
port = 0
[broker]
dir = "/root/.influxdb/broker"
enabled = true
truncation-interval = "10m0s"
max-topic-size = 1073741824
max-segment-size = 10485760
[raft]
apply-interval = "10ms"
election-timeout = "1s"
heartbeat-interval = "100ms"
reconnect-timeout = "10ms"
[data]
dir = "/root/.influxdb/data"
enabled = true
retention-auto-create = true
retention-check-enabled = true
retention-check-period = "10m0s"
retention-create-period = "45m0s"
[snapshot]
enabled = true
[logging]
http-access = true
write-tracing = false
raft-tracing = false
[monitoring]
enabled = false
write-interval = "1m0s"
[debugging]
pprof-enabled = false
[continuous_queries]
recompute-previous-n = 2
recompute-no-older-than = "10m0s"
compute-runs-per-interval = 10
compute-no-more-than = "2m0s"
disabled = false
node0:
hostname: "node0"
image: influxseed
ports:
- "8084:8084"
- "8086:8086"
node1:
hostname: "node1"
image: influxnode
links:
- node0
expose:
- "8084"
- "8086"
node2:
hostname: "node2"
image: influxnode
links:
- node0
expose:
- "8084"
- "8086"
FROM ubuntu
MAINTAINER Tyrell Keene <tyrell.wkeene@gmail.com>
ADD http://get.influxdb.org/influxdb_0.9.0-rc28_amd64.deb influxdb_latest_amd64.deb
RUN dpkg -i influxdb_latest_amd64.deb
ADD ./config_node.toml /root/config.toml
ADD ./start.sh /start.sh
EXPOSE 8084 8086
#CMD ["/opt/influxdb/influxd", "-config=/root/config.toml"]
CMD ["./start.sh"]
FROM ubuntu
MAINTAINER Tyrell Keene <tyrell.wkeene@gmail.com>
ADD http://get.influxdb.org/influxdb_0.9.0-rc28_amd64.deb influxdb_latest_amd64.deb
RUN dpkg -i influxdb_latest_amd64.deb
ADD ./config_seed.toml /root/config.toml
EXPOSE 8084 8086
CMD ["/opt/influxdb/influxd", "-config=/root/config.toml"]
#!/bin/bash
hostname $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
exec /opt/influxdb/influxd -config=/root/config.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment