Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dockerfile.debug and enabled carbonserver in test config #527

Merged
merged 2 commits into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.18

RUN apt-get update && apt-get install -y \
apt-utils telnet netcat-openbsd net-tools jq lsof less

RUN go install github.com/go-delve/delve/cmd/dlv@latest
RUN go install github.com/google/pprof@latest

COPY . go-carbon
WORKDIR /go/go-carbon

RUN go build

RUN addgroup --system carbon && adduser --system carbon && adduser carbon carbon \
&& mkdir -p /var/lib/graphite/whisper /var/lib/graphite/dump /var/lib/graphite/tagging /var/log/go-carbon /etc/go-carbon/ \
&& chown -R carbon:carbon /var/lib/graphite/ /var/log/go-carbon

ADD go-carbon.conf.example /etc/go-carbon/go-carbon.conf
ADD deploy/storage*.conf /etc/go-carbon/
2 changes: 1 addition & 1 deletion go-carbon.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ tagdb-timeout = "1s"
listen = "127.0.0.1:8080"
# Carbonserver support is still experimental and may contain bugs
# Or be incompatible with github.com/grobian/carbonserver
enabled = false
enabled = true
# Buckets to track response times
buckets = 10
# Hard limits the number of whisper files that get created each second. 0 - no limit
Expand Down