Commit 0b53f17d authored by Matt Pryor's avatar Matt Pryor
Browse files

Transfer ownership of logstash files to ESGF user

parent 7292eec5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,10 +16,13 @@ ENV LS_HOME /usr/share/logstash
ENV LS_SETTINGS_DIR /etc/logstash

# Use Elastic's RPM repository to install logstash
# In the same command, in order to avoid another layer, transfer ownership of
# /usr/share/logstash to the ESGF user and group
COPY logstash.repo /etc/yum.repos.d/logstash.repo
RUN yum makecache && \
    yum install -y logstash-7.10.0 && \
    yum clean all
    yum clean all && \
    chown -R $ESGF_UID:$ESGF_GID /usr/share/logstash

# Install configuration files
COPY conf/* /etc/logstash/