-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
47 lines (38 loc) · 918 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!make
APP_HOST ?= 0.0.0.0
APP_PORT ?= 8080
EXTERNAL_APP_PORT ?= ${APP_PORT}
run = docker-compose \
run \
-p ${EXTERNAL_APP_PORT}:${APP_PORT} \
-e PY_IGNORE_IMPORTMISMATCH=1 \
-e APP_HOST=${APP_HOST} \
-e APP_PORT=${APP_PORT} \
app-mongo
.PHONY: image
image:
docker-compose build
.PHONY: docker-run
docker-run: image
$(run)
.PHONY: docker-shell
docker-shell:
$(run) /bin/bash
.PHONY: test
test:
$(run) /bin/bash -c 'export && cd /app/stac_fastapi/mongo/tests/ && pytest'
.PHONY: database
database:
docker-compose run --rm mongo_db
.PHONY: pybase-install
pybase-install:
pip install wheel && \
pip install -e ./stac_fastapi/api[dev] && \
pip install -e ./stac_fastapi/types[dev] && \
pip install -e ./stac_fastapi/extensions[dev]
.PHONY: install
install: pybase-install
pip install -e ./stac_fastapi/mongo[dev,server]
.PHONY: ingest
ingest:
python3 data_loader/data_loader.py