linkedin / Burrow

Kafka Consumer Lag Checking
Apache License 2.0
3.76k stars 801 forks source link

Failed reading configuration: Config File "burrow" Not Found in "[/etc/burrow]" #474

Open cforce opened 5 years ago

cforce commented 5 years ago

Just downloaded repo an run docker-compose up -build

but the container burrow_burrow paste the log

Failed reading configuration: Config File "burrow" Not Found in "[/etc/burrow]"

and service does not get available.

renanbarbosadasilva commented 5 years ago

The same thing happens here. How can we create the config file if the container not started yet ?

renanbarbosadasilva commented 5 years ago

The same thing happens here. How can we create the config file if the container not started yet ?

For solve my doubt, i used the docker intellij plugin. There, there is an easy option to point the host_path. In this way i pointed for the folder(folder in windows in my case) that existed my burrow config file.

chenchuk77 commented 5 years ago

same here... i find a simple dirty workaround by modifying the Dockerfile:

  1. explicitly copy the config file into /app/config
  2. instruct Burrow to use /app/config as the config folder

Dockerfile:

FROM golang:1.12-alpine as builder

ENV BURROW_SRC /usr/src/Burrow/

RUN apk add --no-cache git curl gcc libc-dev
ADD . $BURROW_SRC
WORKDIR $BURROW_SRC
RUN go mod tidy && go build -o /tmp/burrow .

FROM iron/go
LABEL maintainer="LinkedIn Burrow https://github.com/linkedin/Burrow"

WORKDIR /app
COPY --from=builder /tmp/burrow /app/

# Explicitly add the config file
ADD /docker-config/burrow.toml /app/config/burrow.toml

# change the config-dir folder
CMD ["/app/burrow", "--config-dir", "/app/config"]