From b995b55ec03f30268574689b18396056ad519879 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 8 May 2017 13:37:13 +0200 Subject: [PATCH] add chronix:ingester --- docker-compose.yml | 8 ++++++++ ingester/Dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 ingester/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 652df5f..4a40bf7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,5 +9,13 @@ services: - data:/data restart: unless-stopped + ingester: + build: ingester + ports: + - 8080 + links: + - db:chronix + restart: unless-stopped + volumes: data: diff --git a/ingester/Dockerfile b/ingester/Dockerfile new file mode 100644 index 0000000..135aebe --- /dev/null +++ b/ingester/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:alpine + +RUN apk add --no-cache git &&\ + go get github.com/ChronixDB/chronix.ingester &&\ + apk del git + +EXPOSE 8080 +CMD [ "/go/bin/chronix.ingester" "-chronix-url=http://chronix:8983/solr/chronix"]