Skip to content
Snippets Groups Projects
Commit 4779b8bd authored by sh0rez's avatar sh0rez Committed by Cyril Tovena
Browse files

fix(loki): panic on missing config (#720)

* fix(loki): pass missing config error to user

Missing config errors are handled at the library level. Our own check mitigated
this and causes loki to SEGFAULT later on

* feat(loki): default config file in container

The container provides a default config file. Use it by default

* Revert "fix(loki): pass missing config error to user"

This reverts commit b2744fcf427b2b386dce5e999c855ae5c899e4e2, because loki it
assumed loki was incapable of running without config, which is not the case.
parent 813f0d2d
No related branches found
No related tags found
No related merge requests found
......@@ -4,3 +4,4 @@ COPY loki /bin/loki
COPY loki-local-config.yaml /etc/loki/local-config.yaml
EXPOSE 80
ENTRYPOINT [ "/bin/loki" ]
CMD ["-config.file=/etc/loki/local-config.yaml"]
......@@ -15,3 +15,4 @@ RUN apk add --no-cache libc6-compat
# Pass flags to the program you are debugging using --, for example:`
# dlv exec ./hello -- server --config conf/config.toml`
ENTRYPOINT ["/usr/bin/dlv", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/bin/loki-debug", "--"]
CMD ["-config.file=/etc/loki/local-config.yaml"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment