Commit 52224ba3 authored by Dimitrios Liappis's avatar Dimitrios Liappis

Ensure packages are always up to date

and export ELASTIC_CONTAINER=true env var to assist determining we are
running in a containerized environment in the future.
parent 22d1ce64
......@@ -14,7 +14,7 @@ LABEL maintainer "Elastic Docker Team <>"
# Install Java and the "which" command, which is needed by Logstash's shell
# scripts.
RUN yum install -y java-1.8.0-openjdk-devel which && \
RUN yum update -y && yum install -y java-1.8.0-openjdk-devel which && \
yum clean all
# Provide a non-root user to run the process.
......@@ -29,6 +29,8 @@ RUN curl -Lo - {{ url_root }}/{{ tarball }} | \
mv /usr/share/logstash-{{ elastic_version }} /usr/share/logstash && \
chown --recursive logstash:logstash /usr/share/logstash/ && \
ln -s /usr/share/logstash /opt/logstash
ENV PATH=/usr/share/logstash/bin:$PATH
# Provide a minimal configuration, so that simple invocations will provide
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment