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

Commit

Permalink
Move RCA files to subdir owned by elasticsearch user (#271)
Browse files Browse the repository at this point in the history
* Move RCA Supervisor related files to subfolder owned by elasticsearch user

* Make Dockerfile changes to modify supervisor logdir

Co-authored-by: Sid Narayan <[email protected]>
  • Loading branch information
peterzhuamazon and Sid Narayan authored Jul 14, 2020
1 parent 4b3c2b5 commit 669a264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ RUN mkdir /usr/share/elasticsearch && \
chmod 0775 /usr/share/elasticsearch && \
chgrp 0 /usr/share/elasticsearch

RUN mkdir /usr/share/supervisor
RUN mkdir -p /usr/share/supervisor/performance_analyzer

WORKDIR /usr/share/elasticsearch
COPY --from=prep_es_files --chown=1000:0 /usr/share/elasticsearch /usr/share/elasticsearch
Expand Down
8 changes: 4 additions & 4 deletions pa_config/supervisord.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
; supervisor config file

[unix_http_server]
file=/usr/share/supervisor/supervisord.sock
file=/usr/share/supervisor/performance_analyzer/supervisord.sock
chmod=0770

[supervisord]
logfile=/usr/share/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/usr/share/supervisor/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/usr/share/supervisor ; ('AUTO' child log dir, default $TEMP)
logfile=/usr/share/supervisor/performance_analyzer/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/usr/share/supervisor/performance_analyzer/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/usr/share/supervisor/performance_analyzer ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
Expand Down

0 comments on commit 669a264

Please sign in to comment.