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 can now take the source snapshot (opensearch-project#551)
* RFS can now take the source snapshot Signed-off-by: Chris Helma <chelma+github@amazon.com> * Minor tweaks per PR self-review Signed-off-by: Chris Helma <chelma+github@amazon.com> * Updates per PR Comments Signed-off-by: Chris Helma <chelma+github@amazon.com> --------- Signed-off-by: Chris Helma <chelma+github@amazon.com>
- Loading branch information
Showing
11 changed files
with
497 additions
and
50 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
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,20 @@ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 | ||
|
||
# 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 | ||
|
||
# Install our custom entrypoint script | ||
COPY ./container-start.sh /usr/share/elasticsearch/container-start.sh | ||
|
||
# Configure Elastic | ||
ENV ELASTIC_SEARCH_CONFIG_FILE=/usr/share/elasticsearch/config/elasticsearch.yml | ||
# Prevents ES from complaining about nodes coun | ||
RUN echo "discovery.type: single-node" >> $ELASTIC_SEARCH_CONFIG_FILE | ||
ENV PATH=${PATH}:/usr/share/elasticsearch/jdk/bin/ | ||
|
||
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 |
Oops, something went wrong.