File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ ARG ELASTIC_STACK_VERSION
2
+ ARG DISTRIBUTION_SUFFIX
3
+ FROM docker.elastic.co/logstash/logstash${DISTRIBUTION_SUFFIX}:${ELASTIC_STACK_VERSION}
4
+ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
5
+ RUN locale
6
+ RUN locale -a
7
+ RUN localectl set-locale LANG=en_US.UTF-8
8
+ USER logstash
9
+
10
+ COPY --chown=logstash:logstash Gemfile /usr/share/plugins/plugin/Gemfile
11
+ COPY --chown=logstash:logstash *.gemspec VERSION* version* /usr/share/plugins/plugin/
12
+ RUN cp /usr/share/logstash/logstash-core/versions-gem-copy.yml /usr/share/logstash/versions.yml
13
+ # NOTE: since 8.0 JDK is bundled as part of the LS distribution under $LS_HOME/jdk
14
+ ENV PATH="${PATH}:/usr/share/logstash/vendor/jruby/bin:/usr/share/logstash/jdk/bin"
15
+ ENV LOGSTASH_SOURCE="1"
16
+ ENV ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
17
+ # DISTRIBUTION="default" (by default) or "oss"
18
+ ARG DISTRIBUTION
19
+ ENV DISTRIBUTION=$DISTRIBUTION
20
+ # INTEGRATION="true" while integration testing (false-y by default)
21
+ ARG INTEGRATION
22
+ ENV INTEGRATION=$INTEGRATION
23
+ RUN gem install bundler -v '< 2'
24
+ WORKDIR /usr/share/plugins/plugin
25
+ RUN bundle install --with test ci
26
+ COPY --chown=logstash:logstash . /usr/share/plugins/plugin
27
+ RUN bundle exec rake vendor
28
+ RUN .ci/setup.sh
You can’t perform that action at this time.
0 commit comments