Skip to content

Commit 4b95054

Browse files
committed
Update dockerfile with locale
1 parent 58089d4 commit 4b95054

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .ci/Dockerfile

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

0 commit comments

Comments
 (0)