Skip to content

Commit deee76d

Browse files
committed
CI: pass down $ES_SSL_SUPPORTED_PROTOCOLS
1 parent 8d180cf commit deee76d

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Diff for: .ci/Dockerfile.elasticsearch

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG plugin_path=/usr/share/plugins/plugin
55
ARG es_path=/usr/share/elasticsearch
66
ARG es_yml=$es_path/config/elasticsearch.yml
77
ARG SECURE_INTEGRATION
8+
ARG ES_SSL_SUPPORTED_PROTOCOLS
89

910
RUN rm -f $es_path/config/scripts
1011

@@ -18,5 +19,8 @@ RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.k
1819
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.certificate: $es_path/config/test_certs/test.crt" >> $es_yml; fi
1920
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then echo "xpack.security.http.ssl.certificate_authorities: [ '$es_path/config/test_certs/ca.crt' ]" >> $es_yml; fi
2021
RUN if [ "$SECURE_INTEGRATION" = "true" ] && [ ! -z "$ES_SSL_SUPPORTED_PROTOCOLS" ] ; then echo "xpack.security.http.ssl.supported_protocols: ${ES_SSL_SUPPORTED_PROTOCOLS}" >> $es_yml; fi
22+
23+
RUN cat $es_yml
24+
2125
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then $es_path/bin/elasticsearch-users useradd simpleuser -p abc123 -r superuser; fi
2226
RUN if [ "$SECURE_INTEGRATION" = "true" ] ; then $es_path/bin/elasticsearch-users useradd 'f@ncyuser' -p 'ab%12#' -r superuser; fi

Diff for: .ci/docker-compose.override.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ services:
88
args:
99
- ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
1010
environment:
11+
- ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
1112
- INTEGRATION=${INTEGRATION:-false}
1213
- SECURE_INTEGRATION=${SECURE_INTEGRATION:-false}
13-
- ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
14+
- ES_SSL_SUPPORTED_PROTOCOLS=$ES_SSL_SUPPORTED_PROTOCOLS
1415

1516
elasticsearch:
1617
build:
@@ -20,6 +21,9 @@ services:
2021
- ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
2122
- INTEGRATION=${INTEGRATION:-false}
2223
- SECURE_INTEGRATION=${SECURE_INTEGRATION:-false}
24+
- ES_SSL_SUPPORTED_PROTOCOLS=$ES_SSL_SUPPORTED_PROTOCOLS
25+
environment:
26+
- ES_JAVA_OPTS=-Xms640m -Xmx640m
2327
command: /usr/share/elasticsearch/elasticsearch-run.sh
2428
tty: true
2529
ports:

Diff for: .ci/logstash-run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
3+
env
4+
25
set -ex
36

47
export PATH=$BUILD_DIR/gradle/bin:$PATH

0 commit comments

Comments
 (0)