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 (#452)
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 aslakknutsen committed Nov 10, 2017
1 parent 7125877 commit 447a328
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 @@ -22,9 +22,9 @@ RUN mkdir ${KUBECONFIG_DIR} && chmod +777 ${KUBECONFIG_DIR}
# 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 ${F8_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 ./tenant+pmcd.sh /tenant+pmcd.sh
EXPOSE 44321

Expand Down

0 comments on commit 447a328

Please sign in to comment.