Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
pcp-prom implant: fix filesystem permissions (#185)
Browse files Browse the repository at this point in the history
The prometheus receiving agent needs write permissions into the
container filesystem for some transient data storage.
  • Loading branch information
fche authored and alexeykazakov committed Nov 10, 2017
1 parent e2cc454 commit 9990fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ COPY config.yaml ${AUTH_INSTALL_PREFIX}/etc/config.yaml
# would prefer only pmcd, and not the /bin/pm*tools etc.
COPY pcp.repo /etc/yum.repos.d/pcp.repo
RUN yum install -y pcp pcp-pmda-prometheus && yum clean all && \
mkdir -p /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \
chown -R ${AUTH_USER_NAME} /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \
chmod -R ug+rw /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp
mkdir -p /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \
chgrp -R root /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp && \
chmod -R g+rwX /etc/pcp /var/run/pcp /var/lib/pcp /var/log/pcp
COPY ./auth+pmcd.sh /auth+pmcd.sh
EXPOSE 44321

Expand Down

0 comments on commit 9990fa0

Please sign in to comment.