Skip to content

Commit

Permalink
rm temp plugin archive and build\publish opendistro image
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Kotov authored and Aleksandr Kotov committed May 27, 2021
1 parent c5feb53 commit 58d64b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
- uses: actions/checkout@v2
- name: Build the Docker image elasticsearch
run: docker build ./elasticsearch --tag docker.pkg.github.com/digdes/elastic-docker/$IMAGE_NAME_ELASTIC
- name: Build the Docker image opendistro elasticsearch
run: docker build ./opendistro-elasticsearch --tag docker.pkg.github.com/digdes/elastic-docker/$IMAGE_NAME_OPENDISTRO
- name: Log into GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u DigDes --password-stdin docker.pkg.github.com
- name: Push image to GitHub Container Registry
- name: Push elasticsearch image to GitHub Container Registry
run: docker push docker.pkg.github.com/digdes/elastic-docker/$IMAGE_NAME_ELASTIC
- name: Push opendistro elasticsearch image to GitHub Container Registry
run: docker push docker.pkg.github.com/digdes/elastic-docker/$IMAGE_NAME_OPENDISTRO


3 changes: 2 additions & 1 deletion elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:7.6.0
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch ingest-attachment
RUN yum install wget -y && wget https://github.com/DigDes/elasticsearch-analysis-morphology/raw/master/analysis-morphology-7.6.0.zip -O /tmp/analysis-morphology-7.6.0.zip && /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///tmp/analysis-morphology-7.6.0.zip
RUN yum install wget -y && wget https://github.com/DigDes/elasticsearch-analysis-morphology/raw/master/analysis-morphology-7.6.0.zip -O /tmp/analysis-morphology-7.6.0.zip && \
/usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///tmp/analysis-morphology-7.6.0.zip && rm /tmp/analysis-morphology-7.6.0.zip -f
3 changes: 2 additions & 1 deletion opendistro-elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM amazon/opendistro-for-elasticsearch:1.13.2
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch ingest-attachment
RUN yum install wget -y && wget https://github.com/DigDes/elasticsearch-analysis-morphology/raw/master/analysis-morphology-7.10.2.zip -O /tmp/analysis-morphology.zip && /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///tmp/analysis-morphology.zip
RUN yum install wget -y && wget https://github.com/DigDes/elasticsearch-analysis-morphology/raw/master/analysis-morphology-7.10.2.zip -O /tmp/analysis-morphology.zip && \
/usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///tmp/analysis-morphology.zip && rm /tmp/analysis-morphology.zip -f

0 comments on commit 58d64b5

Please sign in to comment.