From d2a0a234b5cbd07a58e4f7f281385a4336b2b6e8 Mon Sep 17 00:00:00 2001 From: Gianluca Arbezzano Date: Sat, 24 Feb 2018 14:59:04 +0100 Subject: [PATCH] Added InfluxDB OS as example We tried to to build an OS with all the TICK stack (https://www.influxdata.com/time-series-platform/): InfluxDB, Chronograf, Kapacitor, Telegraf. Very easy but I was curious to try it out after few months just reading about linuxkit. You can build the image with: ``` linuxkit build --format iso-bios examples/influxdb-os ``` And you can run it: ``` linuxkit run qemu -iso influxdb-os.iso -publish 8888:8888/tcp -publish 8086:8086/tcp ``` After that you can open your browser on `localhost:8888` to see Chronograf (the dashboard up and running). All the services are configured to talk with each other. Signed-off-by: Gianluca Arbezzano Co-authored-by: Lorenzo Fontana --- examples/influxdb-os.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 examples/influxdb-os.yml diff --git a/examples/influxdb-os.yml b/examples/influxdb-os.yml new file mode 100644 index 000000000..1ccddf4a6 --- /dev/null +++ b/examples/influxdb-os.yml @@ -0,0 +1,48 @@ +kernel: + image: linuxkit/kernel:4.14.21 + cmdline: "console=tty0 console=ttyS0 console=ttyAMA0" +init: + - linuxkit/init:d899eee3560a40aa3b4bdd67b3bb82703714b2b9 + - linuxkit/runc:7c39a68490a12cde830e1922f171c451fb08e731 + - linuxkit/containerd:37e397ebfc6bd5d8e18695b121166ffd0cbfd9f0 + - linuxkit/ca-certificates:v0.2 +onboot: + - name: dhcpcd + image: linuxkit/dhcpcd:v0.2 + command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"] +services: + - name: getty + image: linuxkit/getty:v0.2 + env: + - INSECURE=true + - name: influxdb + image: influxdb:1.4 + net: host + capabilities: + - CAP_NET_BIND_SERVICE + - CAP_DAC_OVERRIDE + - name: kapacitor + image: kapacitor:1.4 + net: host + capabilities: + - all + env: + - KAPACITOR_INFLUXDB_0_URLS_0=http://influxdb:8086 + - name: telegraf + image: telegraf:1.4 + net: host + capabilities: + - all + - name: chronograf + image: chronograf:1.4 + net: host + capabilities: + - CAP_NET_BIND_SERVICE + - CAP_DAC_OVERRIDE + env: + - INFLUXDB_URL=http://localhost:8086 + - KAPACITOR_URL=http://localhost:9092 +trust: + org: + - linuxkit + - library