Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
penghuo committed Dec 19, 2019
1 parent f5fa972 commit 126301a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM amazon/opendistro-for-elasticsearch:1.3.0

RUN rm -rf /usr/share/elasticsearch/plugins/opendistro_security
RUN rm -rf /usr/share/elasticsearch/plugins/opendistro_performance_analyzer
RUN rm -rf /usr/share/elasticsearch/plugins/opendistro_alerting
RUN rm -rf /usr/share/elasticsearch/plugins/opendistro_alerting

COPY elasticsearch.yml /usr/share/elasticsearch/config
8 changes: 4 additions & 4 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ phases:
- aws --version
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
- REPOSITORY_URI=483560928347.dkr.ecr.us-west-2.amazonaws.com/opendistro/sql
# - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
- IMAGE_TAG=latest
- COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
- IMAGE_TAG=${COMMIT_HASH:=latest}
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
# - docker build -t $REPOSITORY_URI:latest .
# - docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
- docker build -t $REPOSITORY_URI:latest .
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
post_build:
commands:
- echo Build completed on `date`
Expand Down
8 changes: 8 additions & 0 deletions elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cluster.name: "docker-cluster"
network.host: 0.0.0.0

http.cors.enabled : true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length
http.cors.allow-credentials: true

0 comments on commit 126301a

Please sign in to comment.