Skip to content

Commit

Permalink
cleaner, workaround for idaholab#78, pinning sinatra at 2.1.0 so that…
Browse files Browse the repository at this point in the history
… logstash will start up up; use --preserve flag implemented in elastic/logstash#5224
  • Loading branch information
mmguero committed Feb 17, 2022
1 parent 57989ee commit 6354b8e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Dockerfiles/logstash.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@ RUN yum install -y epel-release && \
yum install -y curl gettext patch python3-setuptools python3-pip python3-requests openssl && \
yum clean all && \
pip3 install ipaddress supervisor manuf pyyaml && \
for PACKAGE in logstash-filter-translate logstash-filter-cidr logstash-filter-dns \
logstash-filter-json logstash-filter-prune logstash-filter-http \
logstash-filter-grok logstash-filter-geoip logstash-filter-uuid \
logstash-filter-kv logstash-filter-mutate logstash-filter-dissect \
logstash-input-beats logstash-output-elasticsearch; do \
for GEM in rack-protection sinatra; do sed -i "s/\($GEM.*\)2\.2\.0/\12\.1\.0/" /usr/share/logstash/Gemfile.lock; done; \
logstash-plugin install "$PACKAGE"; \
for GEM in rack-protection sinatra; do sed -i "s/\($GEM.*\)2\.2\.0/\12\.1\.0/" /usr/share/logstash/Gemfile.lock; done; \
done && \
logstash-plugin install --preserve logstash-filter-translate logstash-filter-cidr logstash-filter-dns \
logstash-filter-json logstash-filter-prune logstash-filter-http \
logstash-filter-grok logstash-filter-geoip logstash-filter-uuid \
logstash-filter-kv logstash-filter-mutate logstash-filter-dissect \
logstash-input-beats logstash-output-elasticsearch && \
rm -rf /root/.cache /root/.gem /root/.bundle

ADD shared/bin/docker-uid-gid-setup.sh /usr/local/bin/
Expand Down

0 comments on commit 6354b8e

Please sign in to comment.