File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change
1
+ doc
2
+ * .md
Original file line number Diff line number Diff line change 1
1
FROM golang:1.17.4-alpine3.15 AS build
2
2
3
- ARG gocarbon_version=0.16.2
4
- ARG gocarbon_repo=https://github.com/go-graphite/go-carbon.git
3
+ COPY . /usr/local/src/go-carbon
5
4
RUN apk add --update git make bash \
6
- && git clone "${gocarbon_repo}" /usr/local/src/go-carbon \
7
5
&& cd /usr/local/src/go-carbon \
8
- && git checkout tags/v"${gocarbon_version}" \
9
6
&& make go-carbon \
10
7
&& chmod +x go-carbon && cp -fv go-carbon /tmp
11
8
12
9
FROM alpine:3.15
13
10
14
11
RUN addgroup -S carbon && adduser -S carbon -G carbon \
15
- && mkdir -p /var/lib/graphite/{ whisper, dump, tagging} /var/log/go-carbon /etc/go-carbon/ \
12
+ && mkdir -p /var/lib/graphite/whisper /var/lib/graphite/ dump /var/lib/graphite/ tagging /var/log/go-carbon /etc/go-carbon/ \
16
13
&& chown -R carbon:carbon /var/lib/graphite/ /var/log/go-carbon
17
14
18
15
COPY --from=build /tmp/go-carbon /usr/sbin/go-carbon
You can’t perform that action at this time.
0 commit comments