Skip to content

Commit 710f88c

Browse files
Merge pull request #2090 from jcantrill/es-cve
Rebuild elasticsearch to bump the version jackson dependency
2 parents 8da0c57 + 7db4ae7 commit 710f88c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

elasticsearch/Dockerfile.origin

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ ENV ES_PATH_CONF=/etc/elasticsearch/ \
2222
RECOVER_AFTER_TIME=5m \
2323
DHE_TMP_KEY_SIZE=2048 \
2424
RELEASE_STREAM=origin
25-
2625
ARG MAVEN_REPO_URL=https://repo1.maven.org/maven2/
27-
2826
RUN yum install -y --nogpgcheck \
2927
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
3028
packages="java-${JAVA_VER}-openjdk-headless \
@@ -39,7 +37,9 @@ RUN yum install -y --nogpgcheck \
3937
yum clean all
4038

4139
ADD extra-jvm.options ci-env.sh install-es.sh /var/tmp
40+
ENV ES_ARCHIVE_URL=https://github.com/openshift/origin-aggregated-logging/releases/download/elasticsearch-oss-6.8.1.redhat-00006/elasticsearch-oss-6.8.1.redhat-00006.zip
4241

42+
RUN if [ ! -f "/usr/bin/python" ]; then ln -s /usr/bin/python3 /usr/bin/python ; fi
4343
RUN /var/tmp/install-es.sh
4444

4545
ADD sgconfig/ ${HOME}/sgconfig/
@@ -51,7 +51,7 @@ ADD init.sh run.sh prep-install* ci-env.sh install.sh lib/tattletale/* ${HOME}/
5151
COPY utils/** /usr/local/bin/
5252

5353
ARG PROMETHEUS_EXPORTER_URL=https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/6.8.1.0/prometheus-exporter-6.8.1.0.zip
54-
ARG OPENDISTRO_URL=https://github.com/jcantrill/security/releases/download/v0.10.1.0/opendistro_security-0.10.1.0.zip
54+
ARG OPENDISTRO_URL=https://github.com/openshift/origin-aggregated-logging/releases/download/opendistro_security-0.10.0.4-redhat-00001/opendistro_security-0.10.0.4-redhat-00001.zip
5555

5656
RUN ${HOME}/install.sh
5757

elasticsearch/Dockerfile.rhel8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ USER 0
88

99
ENV ES_PATH_CONF=/etc/elasticsearch/ \
1010
ES_HOME=/usr/share/elasticsearch \
11-
ES_VER=6.8.1.redhat-6 \
11+
ES_VER=6.8.1.redhat-00006 \
1212
HOME=/opt/app-root/src \
1313
INSTANCE_RAM=512G \
1414
JAVA_VER=11 \
1515
JAVA_HOME=/usr/lib/jvm/jre \
1616
NODE_QUORUM=1 \
1717
PROMETHEUS_EXPORTER_VER=6.8.1.0-redhat-1 \
18-
OPENDISTRO_VER=0.10.1.0-redhat-1 \
18+
OPENDISTRO_VER=0.10.0.4-redhat-00001 \
1919
PLUGIN_LOGLEVEL=INFO \
2020
RECOVER_AFTER_NODES=1 \
2121
RECOVER_EXPECTED_NODES=1 \
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- nvr: org.elasticsearch-parent-6.8.1.redhat_6-1
1+
- nvr: org.elasticsearch-elasticsearch-6.8.1.redhat_00006-1
22
- nvr: org.elasticsearch.plugin.prometheus-elasticsearch-prometheus-exporter-6.8.1.0_redhat_1-2
3-
- nvr: com.amazon.opendistroforelasticsearch-opendistro_security-0.10.1.0_redhat_1-1
3+
- nvr: com.amazon.opendistroforelasticsearch-opendistro_security-0.10.0.4_redhat_00001-1
44

elasticsearch/install-es.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ source $(dirname "$0")/ci-env.sh
99
# put files in correct places in image
1010
# fix up directory permissions and ownership
1111
cd /var/tmp
12-
curl -v -s -o es.zip ${MAVEN_REPO_URL}org/elasticsearch/distribution/zip/elasticsearch-oss/${ES_VER}/elasticsearch-oss-${ES_VER}.zip
12+
ES_ARCHIVE_URL=${ES_ARCHIVE_URL:-${MAVEN_REPO_URL}org/elasticsearch/distribution/zip/elasticsearch-oss/${ES_VER}/elasticsearch-oss-${ES_VER}.zip}
13+
curl -L -v -s -o es.zip ${ES_ARCHIVE_URL}
1314
unzip es.zip
1415
pushd elasticsearch-${ES_VER}
1516
mkdir -p ${ES_HOME}/bin
@@ -43,4 +44,4 @@ chmod u+rwx,g+rwx ${ES_HOME}/logs
4344
mkdir -p /var/run/elasticsearch
4445
chmod u+rwx,g+rwx /var/run/elasticsearch
4546
mkdir /elasticsearch && chmod og+w /elasticsearch
46-
rm -rf elasticsearch-${ES_VER} es.zip extra-jvm.options
47+
rm -rf elasticsearch-${ES_VER} es.zip extra-jvm.options

0 commit comments

Comments
 (0)