Fix elastic rest api connection issue

This commit is contained in:
Chongyi Zheng 2024-07-26 01:17:17 -04:00
parent 7dac80c24a
commit 9ee79aa016
No known key found for this signature in database
GPG Key ID: 4B90B77407DA2359

View File

@ -38,9 +38,10 @@ jobs:
ports:
- "9000:9000"
elasticsearch:
image: elasticsearch:8.14.0
image: elasticsearch:8.14.3
env:
discovery.type: single-node
xpack.security.enabled: false
ports:
- "9200:9200"
steps:
@ -50,7 +51,7 @@ jobs:
go-version-file: go.mod
check-latest: true
- name: Add hosts to /etc/hosts
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts'
run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio elasticsearch" | sudo tee -a /etc/hosts'
- run: make deps-backend
- run: make backend
env:
@ -168,9 +169,11 @@ jobs:
ports:
- "3306:3306"
elasticsearch:
image: elasticsearch:7.5.0
image: elasticsearch:8.14.3
env:
discovery.type: single-node
xpack.security.enabled: false
# ELASTIC_PASSWORD: changeme # TODO: test with tls and auth enabled
ports:
- "9200:9200"
smtpimap: