Skip to content

Commit

Permalink
clear up opensearch building files
Browse files Browse the repository at this point in the history
  • Loading branch information
t83714 committed May 16, 2024
1 parent 6ad5a38 commit 1c1f92b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 95 deletions.
9 changes: 6 additions & 3 deletions magda-opensearch-dashboards/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ services:
# extra_hosts:
# - "host.docker.internal:host-gateway"
volumes:
- ./setup-test.sh:/tmp/setup.sh
- ./opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
entrypoint:
- /tmp/setup.sh
command:
- /bin/bash
- -c
- |
./bin/opensearch-dashboards-plugin remove securityDashboards
./opensearch-dashboards-docker-entrypoint.sh opensearch-dashboards
4 changes: 0 additions & 4 deletions magda-opensearch-dashboards/setup-test.sh

This file was deleted.

5 changes: 1 addition & 4 deletions magda-opensearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM opensearchproject/opensearch:2.14.0
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-security

#COPY --chown=opensearch:opensearch component/opensearch.yml /usr/share/opensearch/config/
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-security --purge
COPY --chown=opensearch:opensearch component/wn_s.pl /usr/share/opensearch/config/analysis/
COPY --chown=opensearch:opensearch component/regionSynonyms.txt /usr/share/opensearch/config/analysis/
#RUN apk add --no-cache --update curl procps
25 changes: 10 additions & 15 deletions magda-opensearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,19 @@ services:
image: opensearchproject/opensearch:2.14.0
ports:
- 9200:9200
- 9600:9600
ulimits:
memlock:
soft: -1
hard: -1
- 9300:9300
volumes:
- ./setup-test.sh:/tmp/setup.sh
- ./regionSynonyms.test.txt:/usr/share/opensearch/config/analysis/regionSynonyms.txt
- ./wn_s_test.pl:/usr/share/opensearch/config/analysis/wn_s.pl
environment:
- cluster.name=oes-data-0
- NODE_DATA=true
- NODE_MASTER=true
- NODE_INGEST=true
- HTTP_ENABLE=true
- DISCOVERY_SERVICE=localhost
- NETWORK_HOST=0.0.0.0
- bootstrap.memory_lock=true
- node.roles=cluster_manager,data,ingest
- discovery.seed_hosts=localhost
- network.host=0.0.0.0
- discovery.type=single-node
entrypoint:
- /tmp/setup.sh
command:
- /bin/bash
- -c
- |
./bin/opensearch-plugin remove opensearch-security --purge
./opensearch-docker-entrypoint.sh opensearch
30 changes: 0 additions & 30 deletions magda-opensearch/opensearch.yml

This file was deleted.

2 changes: 1 addition & 1 deletion magda-opensearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"config": {
"docker": {
"name": "magda-opensearch",
"include": "Dockerfile opensearch.yml setup.sh wn_s.pl regionSynonyms.txt"
"include": "Dockerfile wn_s.pl regionSynonyms.txt"
},
"regionSources": {
"COUNTRY": {
Expand Down
7 changes: 0 additions & 7 deletions magda-opensearch/setup-test.sh

This file was deleted.

31 changes: 0 additions & 31 deletions magda-opensearch/setup.sh

This file was deleted.

0 comments on commit 1c1f92b

Please sign in to comment.