Skip to content

Commit

Permalink
LOG-1195: Add Openshift Ingest Plugin for ES
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-vlcek committed May 18, 2021
1 parent ddbb5d0 commit 6bd66b9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ USER 0

ARG ES_ARCHIVE_URL
ARG PROMETHEUS_EXPORTER_URL
ARG INGEST_PLUGIN_URL
ARG OPENDISTRO_URL
ARG OPENSHIFT_CI

Expand All @@ -44,6 +45,7 @@ ENV ES_PATH_CONF=/etc/elasticsearch/ \
JAVA_HOME=/usr/lib/jvm/jre \
NODE_QUORUM=1 \
PROMETHEUS_EXPORTER_VER=6.8.1.0-redhat-00001 \
INGEST_PLUGIN_URL=6.8.1.0-redhat-00001 \
OPENDISTRO_VER=0.10.0.4-redhat-00001 \
PLUGIN_LOGLEVEL=INFO \
RECOVER_AFTER_NODES=1 \
Expand Down
2 changes: 2 additions & 0 deletions elasticsearch/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ USER 0

ARG ES_ARCHIVE_URL
ARG PROMETHEUS_EXPORTER_URL
ARG INGEST_PLUGIN_URL
ARG OPENDISTRO_URL
ARG OPENSHIFT_CI

Expand All @@ -57,6 +58,7 @@ ENV ES_PATH_CONF=/etc/elasticsearch/ \
JAVA_HOME=/usr/lib/jvm/jre \
NODE_QUORUM=1 \
PROMETHEUS_EXPORTER_VER=6.8.1.0-redhat-00001 \
INGEST_PLUGIN_URL=6.8.1.0-redhat-00001 \
OPENDISTRO_VER=0.10.0.4-redhat-00001 \
PLUGIN_LOGLEVEL=INFO \
RECOVER_AFTER_NODES=1 \
Expand Down
7 changes: 6 additions & 1 deletion elasticsearch/ci-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ set -o xtrace

PROMETHEUS_EXPORTER_URL=${PROMETHEUS_EXPORTER_URL:-$MAVEN_REPO_URL/org/elasticsearch/plugin/prometheus/prometheus-exporter/$PROMETHEUS_EXPORTER_VER/prometheus-exporter-$PROMETHEUS_EXPORTER_VER.zip}
OPENDISTRO_URL=${OPENDISTRO_URL:-$MAVEN_REPO_URL/com/amazon/opendistroforelasticsearch/opendistro_security/$OPENDISTRO_VER/opendistro_security-$OPENDISTRO_VER.zip}
INGEST_PLUGIN_URL=${INGESTI_PLUGIN_URL:-$MAVEN_REPO_URL/org/elasticsearch/plugin/ingest/openshift/$INGEST_PLUGIN_VER/openshift_ingest-plugin-$INGEST_PLUGIN_VER.zip}

if [[ "${OPENSHIFT_CI:-}" == "true" ]]; then
# This flag is set during CI runs. If no ARG was passed in,
# default to maven.org.
export ES_ARCHIVE_URL=https://github.com/openshift/origin-aggregated-logging/releases/download/elasticsearch-oss-$ES_VER/elasticsearch-oss-$ES_VER.zip
export OPENDISTRO_URL=https://github.com/openshift/origin-aggregated-logging/releases/download/opendistro_security-$OPENDISTRO_VER/opendistro_security-$OPENDISTRO_VER.zip

# TODO[lvlcek]: We need to download official releases from ViaQ repo. Getting it from lukas-vlcek is temporary.
INGEST_PLUGIN_VER=$(echo INGEST_PLUGIN_VER | cut -d'-' -f1)
export INGEST_PLUGIN_URL=https://github.com/lukas-vlcek/elasticsearch-openshift-ingest-plugin/releases/download/$INGEST_PLUGIN_VER-testing/openshift-ingest-plugin-$INGEST_PLUGIN_VER.zip

PROMETHEUS_EXPORTER_VER=$(echo $PROMETHEUS_EXPORTER_VER | cut -d'-' -f1)
export PROMETHEUS_EXPORTER_URL=https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/$PROMETHEUS_EXPORTER_VER/prometheus-exporter-$PROMETHEUS_EXPORTER_VER.zip
fi
es_plugins=($OPENDISTRO_URL $PROMETHEUS_EXPORTER_URL)
es_plugins=($OPENDISTRO_URL $PROMETHEUS_EXPORTER_URL $INGEST_PLUGIN_URL)
1 change: 1 addition & 0 deletions elasticsearch/fetch-artifacts-koji.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- nvr: org.elasticsearch-elasticsearch-6.8.1.redhat_00006-1
- nvr: com.amazon.opendistroforelasticsearch-opendistro_security-0.10.0.4_redhat_00001-1
- nvr: org.elasticsearch.plugin.prometheus-prometheus-exporter-6.8.1.0_redhat_00001-1
- nvr: org.elasticsearch.plugin.ingest.openshift-ingest-plugin-6.8.1.0_redhat_00001-1

0 comments on commit 6bd66b9

Please sign in to comment.