Skip to content

Commit

Permalink
Bootstrap xpack password (#4875)
Browse files Browse the repository at this point in the history
This is meant to make it easy for us to test with security enabled.
  • Loading branch information
tsg authored and ruflin committed Aug 11, 2017
1 parent 93cbda3 commit 0718b44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/environments/docker/elasticsearch/Dockerfile-snapshot
Expand Up @@ -41,6 +41,9 @@ RUN if [ ${XPACK} = "1" ]; then elasticsearch-plugin install --batch ${DOWNLOAD_
RUN elasticsearch-plugin install --batch ${DOWNLOAD_URL}/elasticsearch-plugins/ingest-user-agent/ingest-user-agent-${ELASTIC_VERSION}.zip?c=${CACHE_BUST}
RUN elasticsearch-plugin install --batch ${DOWNLOAD_URL}/elasticsearch-plugins/ingest-geoip/ingest-geoip-${ELASTIC_VERSION}.zip?c=${CACHE_BUST}

# Set bootstrap password (for when security is used)
RUN if [ ${XPACK} = "1" ]; then elasticsearch-keystore create; echo "changeme" | elasticsearch-keystore add -x 'bootstrap.password'; fi

COPY config/elasticsearch.yml config/
COPY config/log4j2.properties config/
COPY bin/es-docker bin/es-docker
Expand Down

0 comments on commit 0718b44

Please sign in to comment.