Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
fix up dockerfile + permissions in /var/log
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-leonhardt committed Jul 13, 2015
1 parent 27cb46c commit 44ad593
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ RUN yum -y update

RUN mkdir -p /opt/sensu-grid

ADD . /opt/sensu-grid
ADD templates /opt/sensu-grid/templates
ADD static /opt/sensu-grid/static
ADD conf /opt/sensu-grid/conf
ADD requirements.txt /opt/sensu-grid/requirements.txt
ADD *.py /opt/sensu-grid/
ADD docker-start.sh /opt/sensu-grid/docker-start.sh

RUN pip install -r /opt/sensu-grid/requirements.txt
RUN useradd -r sensu-grid
RUN chown -R sensu-grid:sensu-grid /opt/sensu-grid
RUN chmod 640 /opt/sensu-grid/conf/config.yaml && chmod 755 /opt/sensu-grid/docker-start.sh
RUN touch /var/log/sensu-grid.log && chown sensu-grid:sensu-grid /var/log/sensu-grid.log

ADD start-scripts/supervisord-docker.conf /etc/supervisord.conf

Expand Down
2 changes: 1 addition & 1 deletion start-scripts/supervisord-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stopwaitsecs=30 ; max num secs to wait before SIGKILL (default 10)
user=sensu-grid ; setuid to this UNIX account to run the program
log_stdout=true ; if true, log program stdout (default true)
log_stderr=true ; if true, log program stderr (def false)
logfile=/var/log/sensu-grid.log ; child log path, use NONE for none; default AUTO
logfile=/var/log/supervisor/sensu-grid.log ; child log path, use NONE for none; default AUTO
logfile_maxbytes=1000MB ; max # logfile bytes b4 rotation (default 50MB)
logfile_backups=3 ; # of logfile backups (default 10)

Expand Down

0 comments on commit 44ad593

Please sign in to comment.