Skip to content

Commit 8f2d91a

Browse files
authored
Merge pull request #30 from planetlabs/docs
Minor doc and make target tweaks
2 parents 72e63d8 + 57e2f94 commit 8f2d91a

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ help:
1414
.PHONY: build
1515
build: ## Rewrite all STAC files referenced by ./stac/catalog.json to use absolute links, write to build/stac dir
1616
@docker run \
17+
--rm \
1718
--volume $$(pwd):/work \
1819
$(GO_STAC) make-links-absolute \
1920
--entry /work/stac/catalog.json \
@@ -24,6 +25,7 @@ build: ## Rewrite all STAC files referenced by ./stac/catalog.json to use absolu
2425
.PHONY: validate
2526
validate: ## Validate all STAC files referenced by ./stac/catalog.json
2627
@docker run \
28+
--rm \
2729
--volume $$(pwd):/work \
2830
$(GO_STAC) validate \
2931
--entry /work/stac/catalog.json
@@ -32,6 +34,7 @@ validate: ## Validate all STAC files referenced by ./stac/catalog.json
3234
.PHONY: stats
3335
stats: ## Add stats metadata to ./stac/catalog.json
3436
@docker run \
37+
--rm \
3538
--volume $$(pwd):/work \
3639
$(GO_STAC) stats \
3740
--entry /work/stac/catalog.json \
@@ -41,6 +44,7 @@ stats: ## Add stats metadata to ./stac/catalog.json
4144
.PHONY: format
4245
format: ## Format all STAC files referenced by ./stac/catalog.json
4346
@docker run \
47+
--rm \
4448
--volume $$(pwd):/work \
4549
$(GO_STAC) format \
4650
--entry /work/stac/catalog.json \
@@ -69,6 +73,7 @@ build/.browser-$(STAC_BROWSER_SHA):
6973
.PHONY: preview
7074
preview: build browser ## Preview the catalog
7175
@docker run \
76+
--rm \
7277
--volume $$(pwd):/work \
7378
--publish 8000:8000 \
7479
--workdir /work \

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ The catalog should be considered 'in-progress', as not all items are in their id
77

88
### Development
99

10-
The instructions below currently require access to the private us.gcr.io/planet-gcr registry. Until that changes, you can skip these `make` commands and rely on CI jobs to make things work.
10+
The development environment requires [Docker](https://docs.docker.com/get-docker/) and [Make](https://www.gnu.org/software/make/). The instructions below make use the [`ghcr.io/planetlabs/go-stac` image](https://github.com/planetlabs/go-stac/pkgs/container/go-stac). The CI jobs run the same tasks, so if you cannot run them locally, you can rely on the CI jobs.
1111

12-
The development environment requires [Docker](https://docs.docker.com/get-docker/) and [Make](https://www.gnu.org/software/make/).
1312

1413
After adding new STAC resources to the `stac` directory, add links from the root `stac/catalog.json` (or an existing linked collection or catalog). Use relative URLs for all link `href` values.
1514

16-
To format everything in the `stac` directory:
17-
18-
make format
19-
2015
To add or update stats for the `stac/catalog.json`:
2116

2217
make stats
2318

19+
To format everything in the `stac` directory:
20+
21+
make format
22+
2423
To validate all of the resources:
2524

2625
make validate

stac/catalog.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@
6767
}
6868
},
6969
"stats:collections": {
70-
"count": 12,
70+
"count": 13,
7171
"extensions": {
7272
"https://stac-extensions.github.io/version/v1.2.0/schema.json": 3,
7373
"https://stac-extensions.github.io/web-map-links/v1.1.0/schema.json": 4
7474
},
7575
"versions": {
76-
"1.0.0": 12
76+
"1.0.0": 13
7777
}
7878
},
7979
"stats:items": {
@@ -86,24 +86,24 @@
8686
"image/png": 17,
8787
"image/tiff": 3,
8888
"image/tiff; application=geotiff": 2253,
89-
"image/tiff; application=geotiff; profile=cloud-optimized": 437,
89+
"image/tiff; application=geotiff; profile=cloud-optimized": 438,
9090
"text/xml": 4
9191
},
92-
"count": 3722,
92+
"count": 3723,
9393
"extensions": {
9494
"https://planetlabs.github.io/stac-extension/v1.0.0-beta.3/schema.json": 30,
9595
"https://stac-extensions.github.io/eo/v1.0.0/schema.json": 2,
96-
"https://stac-extensions.github.io/eo/v1.1.0/schema.json": 400,
96+
"https://stac-extensions.github.io/eo/v1.1.0/schema.json": 401,
9797
"https://stac-extensions.github.io/file/v2.0.0/schema.json": 16,
9898
"https://stac-extensions.github.io/label/v1.0.0/schema.json": 1423,
9999
"https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json": 4,
100-
"https://stac-extensions.github.io/projection/v1.1.0/schema.json": 399,
101-
"https://stac-extensions.github.io/raster/v1.1.0/schema.json": 384,
100+
"https://stac-extensions.github.io/projection/v1.1.0/schema.json": 400,
101+
"https://stac-extensions.github.io/raster/v1.1.0/schema.json": 385,
102102
"https://stac-extensions.github.io/stereo-imagery/v1.0.0/schema.json": 18,
103103
"https://stac-extensions.github.io/view/v1.0.0/schema.json": 33
104104
},
105105
"versions": {
106-
"1.0.0": 3722
106+
"1.0.0": 3723
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)