File tree 2 files changed +30
-12
lines changed
2 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 31
31
ports :
32
32
- 9200:9200
33
33
34
+ elasticsearch_7_svc :
35
+ image : docker.elastic.co/elasticsearch/elasticsearch:7.17.1
36
+ env :
37
+ cluster.name : stac-cluster
38
+ node.name : es01
39
+ network.host : 0.0.0.0
40
+ transport.host : 0.0.0.0
41
+ discovery.type : single-node
42
+ http.port : 9400
43
+ xpack.license.self_generated.type : basic
44
+ xpack.security.enabled : false
45
+ xpack.security.transport.ssl.enabled : false
46
+ ES_JAVA_OPTS : -Xms512m -Xmx1g
47
+ ports :
48
+ - 9400:9400
49
+
34
50
steps :
35
51
- name : Check out repository code
36
52
uses : actions/checkout@v3
@@ -52,12 +68,22 @@ jobs:
52
68
run : |
53
69
pip install ./stac_fastapi/elasticsearch[dev,server]
54
70
55
- - name : Run test suite against Elasticsearch 8 .x
71
+ - name : Run test suite against Elasticsearch 7 .x
56
72
run : |
57
73
cd stac_fastapi/elasticsearch && pipenv run pytest -svvv
58
74
env :
59
75
ENVIRONMENT : testing
60
76
ES_PORT : 9200
61
77
ES_HOST : 172.17.0.1
62
78
ES_USE_SSL : false
79
+ ES_VERIFY_CERTS : false
80
+
81
+ - name : Run test suite against Elasticsearch 8.x
82
+ run : |
83
+ cd stac_fastapi/elasticsearch && pipenv run pytest -svvv
84
+ env :
85
+ ENVIRONMENT : testing
86
+ ES_PORT : 9400
87
+ ES_HOST : 172.17.0.1
88
+ ES_USE_SSL : false
63
89
ES_VERIFY_CERTS : false
Original file line number Diff line number Diff line change @@ -37,22 +37,14 @@ docker-compose build
37
37
docker-compose up
38
38
` ` `
39
39
40
- By default, docker-compose uses Elasticsearch 7.x. If you wish to use a different version, put the following in a
40
+ By default, docker-compose uses Elasticsearch 8.x. However, most recent 7.x versions should also work.
41
+ If you wish to use a different version, put the following in a
41
42
file named ` .env` in the same directory you run docker-compose from:
42
43
43
44
` ` ` shell
44
- ELASTICSEARCH_VERSION=7.12.0
45
+ ELASTICSEARCH_VERSION=7.17.1
45
46
` ` `
46
47
47
- # ## Generate a keystore and cert
48
-
49
- ` ` ` shell
50
- docker-compose -f docker-compose.setup.yml run --rm keystore
51
- docker-compose -f docker-compose.setup.yml run --rm certs
52
- ` ` `
53
-
54
-
55
-
56
48
To create a new Collection:
57
49
58
50
` ` ` shell
You can’t perform that action at this time.
0 commit comments