forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFS] Collection of Minor Changes (opensearch-project#717)
* Swapped RFS Docker Compose to use ES 7.17 Signed-off-by: Chris Helma <chelma+github@amazon.com> * Updated RFS to delete files when finished, reject large shards Signed-off-by: Chris Helma <chelma+github@amazon.com> * Updates per PR comments Signed-off-by: Chris Helma <chelma+github@amazon.com> * Small RFS bug fix Signed-off-by: Chris Helma <chelma+github@amazon.com> * More updates per PR comments Signed-off-by: Chris Helma <chelma+github@amazon.com> * More updates per PR discussion Signed-off-by: Chris Helma <chelma+github@amazon.com> --------- Signed-off-by: Chris Helma <chelma+github@amazon.com>
- Loading branch information
Showing
20 changed files
with
382 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:7.17.21 AS base | ||
|
||
# Configure Elastic | ||
ENV ELASTIC_SEARCH_CONFIG_FILE=/usr/share/elasticsearch/config/elasticsearch.yml | ||
# Prevents ES from complaining about nodes count | ||
RUN echo "discovery.type: single-node" >> $ELASTIC_SEARCH_CONFIG_FILE | ||
ENV PATH=${PATH}:/usr/share/elasticsearch/jdk/bin/ | ||
|
||
# Install the S3 Repo Plugin | ||
RUN echo y | /usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 | ||
|
||
# Install the AWS CLI for testing purposes | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install | ||
|
||
RUN mkdir /snapshots && chown elasticsearch /snapshots | ||
|
||
# Install our custom entrypoint script | ||
COPY ./container-start.sh /usr/share/elasticsearch/container-start.sh | ||
|
||
CMD /usr/share/elasticsearch/container-start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
echo "Setting AWS Creds from ENV Variables" | ||
bin/elasticsearch-keystore create | ||
echo $AWS_ACCESS_KEY_ID | bin/elasticsearch-keystore add s3.client.default.access_key --stdin | ||
echo $AWS_SECRET_ACCESS_KEY | bin/elasticsearch-keystore add s3.client.default.secret_key --stdin | ||
|
||
if [ -n "$AWS_SESSION_TOKEN" ]; then | ||
echo $AWS_SESSION_TOKEN | bin/elasticsearch-keystore add s3.client.default.session_token --stdin | ||
fi | ||
|
||
echo "Starting Elasticsearch" | ||
/usr/local/bin/docker-entrypoint.sh eswrapper |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.