Commit 640f554 1 parent 54b1b62 commit 640f554 Copy full SHA for 640f554
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.12 as builder
2
2
WORKDIR /go/src/github.com/camptocamp/prometheus-puppetdb-sd
3
+ RUN mkdir -p /etc/prometheus/puppetdb-sd/ && chown -R 1001:root /etc/prometheus/puppetdb-sd/ && chmod -R g=u /etc/prometheus/puppetdb-sd/
3
4
COPY . .
4
5
RUN make prometheus-puppetdb-sd
5
- RUN mkdir /data && touch /data/targets.yml && chown -R 1001.root /data && chmod -R g=u /data
6
6
7
7
FROM scratch
8
8
COPY --from=builder /go/src/github.com/camptocamp/prometheus-puppetdb-sd/prometheus-puppetdb-sd /
9
- COPY --from=builder /data/targets.yml /data/targets.yml
10
- VOLUME /data
9
+ COPY --from=builder --chown=1001:0 /etc/prometheus /etc/prometheus
10
+ VOLUME /etc/prometheus/puppetdb-sd/
11
11
USER 1001
12
12
ENTRYPOINT ["/prometheus-puppetdb-sd" ]
You can’t perform that action at this time.
0 commit comments