-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "update to python 3.10 and ES 8.x""
This reverts commit c31ae43.
- Loading branch information
Phil Varner
committed
Apr 25, 2022
1 parent
c31ae43
commit 70fbd50
Showing
11 changed files
with
43 additions
and
84 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 |
---|---|---|
|
@@ -15,30 +15,15 @@ jobs: | |
|
||
services: | ||
|
||
elasticsearch_7_svc: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1 | ||
elasticsearch_8_svc: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.1.3 | ||
env: | ||
node.name: es01 | ||
cluster.name: stac-cluster | ||
discovery.type: single-node | ||
network.host: 0.0.0.0 | ||
http.port: 9200 | ||
ES_JAVA_OPTS: -Xms512m -Xmx512m | ||
ES_JAVA_OPTS: -Xms512m -Xmx1g | ||
volumes: | ||
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml | ||
ports: | ||
- 9200:9200 | ||
|
||
# elasticsearch_8_svc: | ||
# image: docker.elastic.co/elasticsearch/elasticsearch:8.1.0 | ||
# env: | ||
# node.name: es01 | ||
# cluster.name: stac-cluster | ||
# discovery.type: single-node | ||
# network.host: 0.0.0.0 | ||
# http.port: 9200 | ||
# ES_JAVA_OPTS: -Xms512m -Xmx512m | ||
# ports: | ||
# - 9200:9200 | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
@@ -47,7 +32,7 @@ jobs: | |
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.10" | ||
|
||
- name: Lint code | ||
uses: pre-commit/[email protected] | ||
|
@@ -60,24 +45,12 @@ jobs: | |
run: | | ||
pip install ./stac_fastapi/elasticsearch[dev,server] | ||
- name: Run test suite against Elasticsearch 7.x | ||
- name: Run test suite against Elasticsearch 8.x | ||
run: | | ||
cd stac_fastapi/elasticsearch && pipenv run pytest -svvv | ||
env: | ||
ENVIRONMENT: testing | ||
# ES_USER: dev | ||
# ES_PASS: stac | ||
ES_PORT: 9200 | ||
ES_HOST: 172.17.0.1 | ||
ES_USE_SSL: false | ||
ES_VERIFY_CERTS: false | ||
|
||
# - name: Run test suite against Elasticsearch 8.x | ||
# run: | | ||
# cd stac_fastapi/elasticsearch && pipenv run pytest -svvv | ||
# env: | ||
# ENVIRONMENT: testing | ||
# ES_USER: dev | ||
# ES_PASS: stac | ||
# ES_PORT: 9400 | ||
# ES_HOST: 172.17.0.1 | ||
ES_VERIFY_CERTS: false |
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
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,4 +1,4 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.10-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get -y upgrade && \ | ||
|
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,4 +1,4 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.10-slim | ||
|
||
|
||
# update apt pkgs, and install build-essential for ciso8601 | ||
|
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
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
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,14 @@ | ||
## Cluster Settings | ||
cluster.name: stac-cluster | ||
node.name: es01 | ||
network.host: 0.0.0.0 | ||
transport.host: 0.0.0.0 | ||
discovery.type: single-node | ||
http.port: 9200 | ||
|
||
## License | ||
xpack.license.self_generated.type: basic | ||
|
||
# Security | ||
xpack.security.enabled: false | ||
xpack.security.transport.ssl.enabled: false |
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
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
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
11 changes: 0 additions & 11 deletions
11
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/session.py
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