Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.05 KB

franklin.md

File metadata and controls

45 lines (37 loc) · 1.05 KB

Franklin Examples

A copy of the Franklin introduction.

host.docker.internal here is the reference to the DB locally available for the MacOS or Windows machine. Check Docker docs for more details.

  1. Run DB migrations
docker run --rm \
  quay.io/azavea/franklin:latest \
  migrate \
  --db-user franklin \
  --db-name franklin \
  --db-password franklin \
  --db-host host.docker.internal
  1. Import STAC Catalog
docker run --rm \
  -v ~/.aws:/var/lib/franklin/.aws \
  quay.io/azavea/franklin:latest \
  import-catalog \
  --db-user franklin \
  --db-name franklin \
  --db-password franklin \
  --db-host host.docker.internal \
  --catalog-root s3://geotrellis-workshop/shade-out-catalog-small/catalog.json
  1. Run Franklin instance
docker run --rm \
  -p 9090:9090 \
  quay.io/azavea/franklin:latest \
  serve \
  --db-user franklin \
  --db-name franklin \
  --db-password franklin \
  --db-host host.docker.internal