MM-53962: Adding ES8 dependency (#24399)

* Adding ES8 dependency

```release-note
NONE
```


Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Agniva De Sarker
2024-07-11 13:13:31 +05:30
коммит произвёл GitHub
родитель a695a755f6
Коммит 177389d224
21 изменённых файлов: 149 добавлений и 35 удалений

3
server/build/Dockerfile.opensearch Обычный файл
Просмотреть файл

@@ -0,0 +1,3 @@
FROM opensearchproject/opensearch:2.7.0
RUN /usr/share/opensearch/bin/opensearch-plugin install analysis-icu

Просмотреть файл

@@ -31,6 +31,7 @@ func main() {
"inbucket": 9001,
"openldap": 389,
"elasticsearch": 9200,
"opensearch": 9201,
"dejavu": 1358,
"keycloak": 8080,
"prometheus": 9090,

Просмотреть файл

@@ -87,7 +87,7 @@ services:
LDAP_DOMAIN: "mm.test.com"
LDAP_ADMIN_PASSWORD: "mostest"
elasticsearch:
image: "mattermostdevelopment/mattermost-elasticsearch:7.17.10"
image: "mattermostdevelopment/mattermost-elasticsearch:8.9.0"
networks:
- mm-test
environment:
@@ -98,6 +98,25 @@ services:
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
http.cors.allow-credentials: "true"
transport.host: "127.0.0.1"
xpack.security.enabled: "false"
action.destructive_requires_name: "false"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
opensearch:
build:
context: .
dockerfile: ./Dockerfile.opensearch
networks:
- mm-test
environment:
http.host: "0.0.0.0"
http.port: 9201
http.cors.enabled: "true"
http.cors.allow-origin: "http://localhost:1358,http://127.0.0.1:1358"
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
http.cors.allow-credentials: "true"
transport.host: "127.0.0.1"
discovery.type: single-node
plugins.security.disabled: "true"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
dejavu:
image: "appbaseio/dejavu:3.4.2"

Просмотреть файл

@@ -28,6 +28,10 @@ services:
extends:
file: docker-compose.common.yml
service: elasticsearch
opensearch:
extends:
file: docker-compose.common.yml
service: opensearch
dejavu:
extends:
file: docker-compose.common.yml
@@ -64,7 +68,8 @@ services:
- inbucket
- openldap
- elasticsearch
command: postgres:5432 mysql:3306 minio:9000 inbucket:9001 openldap:389 elasticsearch:9200
- opensearch
command: postgres:5432 mysql:3306 minio:9000 inbucket:9001 openldap:389 elasticsearch:9200 opensearch:9201
networks:
mm-test: