File tree Expand file tree Collapse file tree 4 files changed +40
-24
lines changed Expand file tree Collapse file tree 4 files changed +40
-24
lines changed Original file line number Diff line number Diff line change 1
- ** Related Issue(s):** #
1
+ ** Related Issue(s):**
2
2
3
+ - #
3
4
4
5
** Description:**
5
6
9
10
- [ ] Code is formatted and linted (run ` pre-commit run --all-files ` )
10
11
- [ ] Tests pass (run ` make test ` )
11
12
- [ ] Documentation has been updated to reflect changes, if applicable, and docs build successfully (run ` make docs ` )
12
- - [ ] Changes are added to the [ CHANGELOG] ( https://github.com/stac-utils/pystac/blob/master/CHANGES.md ) .
13
+ - [ ] Changes are added to the [ CHANGELOG] ( https://github.com/stac-utils/pystac/blob/master/CHANGES.md ) , if applicable
File renamed without changes.
Original file line number Diff line number Diff line change @@ -11,38 +11,35 @@ run_es = docker-compose \
11
11
-e APP_PORT=${APP_PORT} \
12
12
app-elasticsearch
13
13
14
- .PHONY : es- image
15
- es- image :
14
+ .PHONY : image
15
+ image :
16
16
docker-compose build
17
17
18
- .PHONY : docker-run-es
19
- docker-run-es : es- image
18
+ .PHONY : docker-run
19
+ docker-run : image
20
20
$(run_es )
21
21
22
- .PHONY : docker-shell-es
23
- docker-shell-es :
22
+ .PHONY : docker-shell
23
+ docker-shell :
24
24
$(run_es ) /bin/bash
25
25
26
- .PHONY : test-es
27
- test-es :
28
- $(run_es ) /bin/bash -c ' export && ./scripts/wait-for-it.sh elasticsearch:9200 && cd /app/stac_fastapi/elasticsearch/tests/ && pytest'
26
+ .PHONY : test
27
+ test :
28
+ $(run_es ) /bin/bash -c ' export && ./scripts/wait-for-it-es .sh elasticsearch:9200 && cd /app/stac_fastapi/elasticsearch/tests/ && pytest'
29
29
30
- .PHONY : run-es- database
31
- run-es- database :
30
+ .PHONY : run-database
31
+ run-database :
32
32
docker-compose run --rm elasticsearch
33
33
34
- .PHONY : test
35
- test : test-elasticsearch
36
-
37
34
.PHONY : pybase-install
38
35
pybase-install :
39
36
pip install wheel && \
40
37
pip install -e ./stac_fastapi/api[dev] && \
41
38
pip install -e ./stac_fastapi/types[dev] && \
42
39
pip install -e ./stac_fastapi/extensions[dev]
43
40
44
- .PHONY : es- install
45
- es- install : pybase-install
41
+ .PHONY : install
42
+ install : pybase-install
46
43
pip install -e ./stac_fastapi/elasticsearch[dev,server]
47
44
48
45
.PHONY : docs-image
Original file line number Diff line number Diff line change @@ -4,12 +4,30 @@ Elasticsearch backend for stac-fastapi.
4
4
5
5
** WIP** This backend is not yet stable (notice no releases yet), so use the pgstac backend instead.
6
6
7
- ------
8
- #### Running API on localhost:8083
7
+ ## Development Environment Setup
9
8
10
- ``` docker-compose up ```
9
+ Install [ pre-commit ] ( https://pre-commit.com/#install ) .
11
10
12
- ------
13
- #### Testing
11
+ Prior to commit, run:
14
12
15
- ``` make test-es ```
13
+ ```
14
+ pre-commit run --all-files`
15
+ ```
16
+
17
+ ## Building
18
+
19
+ ```
20
+ docker-compose build
21
+ ```
22
+
23
+ ## Running API on localhost:8083
24
+
25
+ ```
26
+ docker-compose up
27
+ ```
28
+
29
+ ## Testing
30
+
31
+ ```
32
+ make test
33
+ ```
You can’t perform that action at this time.
0 commit comments