-
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.
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
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 |
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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# sql-demo | ||
Opendistro SQL Demo | ||
|
||
## Files | ||
1. buildsepc.xml tell CodeBuild how to do that | ||
2. Dockerfile | ||
|
||
## Reference | ||
Refer https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-cd-pipeline.html |
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,27 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
- echo Logging in to Amazon ECR... | ||
- 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 | ||
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 | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Pushing the Docker images... | ||
- docker push $REPOSITORY_URI:latest | ||
- docker push $REPOSITORY_URI:$IMAGE_TAG | ||
- echo Writing image definitions file... | ||
- printf '[{"name":"es-container","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json | ||
artifacts: | ||
files: imagedefinitions.json |