Skip to content

Commit

Permalink
Merge pull request #527 from go-graphite/atimofieiev/fixes
Browse files Browse the repository at this point in the history
added dockerfile.debug and enabled carbonserver in test config
  • Loading branch information
timtofan committed Feb 10, 2023
2 parents c41f043 + 519b5bd commit 0fb928d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
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

0 comments on commit 0fb928d

Please sign in to comment.