-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
62 lines (47 loc) · 1.79 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
build-image:
docker build . \
--tag GeoscienceAustralia/dea-waterbodies:test \
--build-arg ENVIRONMENT=test
build-prod-image:
docker build . \
--tag GeoscienceAustralia/dea-waterbodies:latest \
--build-arg ENVIRONMENT=deployment
run-prod:
docker run --rm \
GeoscienceAustralia/dea-waterbodies
test-local:
pytest tests
# Docker Compose environment
build:
docker-compose build
up:
docker-compose up
down:
docker-compose down
shell:
docker-compose exec waterbodies bash
test:
docker-compose exec waterbodies pytest tests
lint:
docker-compose exec waterbodies black --check dea_waterbodies
integration-test:
docker-compose up -d
docker-compose exec -T dea_waterbodies bash ./tests/integration_tests.sh
# C3 Related
initdb:
docker-compose exec waterbodies \
datacube system init
metadata:
docker-compose exec waterbodies \
datacube metadata add https://raw.githubusercontent.com/GeoscienceAustralia/digitalearthau/develop/digitalearthau/config/eo3/eo3_landsat_ard.odc-type.yaml
product:
docker-compose exec waterbodies \
datacube product add \
https://raw.githubusercontent.com/GeoscienceAustralia/digitalearthau/master/digitalearthau/config/products/wofs_albers.odc-product.yaml \
https://raw.githubusercontent.com/GeoscienceAustralia/digitalearthau/master/digitalearthau/config/products/wofs_filtered_summary.odc-product.yaml \
https://raw.githubusercontent.com/GeoscienceAustralia/digitalearthau/master/digitalearthau/config/products/wofs_summary.odc-product.yaml
index:
docker-compose exec waterbodies \
datacube dataset add --ignore-lineage --confirm-ignore-lineage \
s3://dea-public-data/WOfS/filtered_summary/v2.1.0/combined/x_15/y_-40/wofs_filtered_summary_15_-40.yaml \
s3://dea-public-data/WOfS/summary/v2.1.0/combined/x_15/y_-40/WOFS_3577_15_-40_summary.yaml