Skip to content
forked from b-g/tilehut

A modest, but cozy home for your map tiles

License

Notifications You must be signed in to change notification settings

move-lab/tilehut

 
 

Repository files navigation

Tilehut

PROD
Build Status
prod Deployment

Description: see README.

Endpoints:

api-tilehut-a.<endpoint>
api-tilehut-b.<endpoint>
api-tilehut-c.<endpoint>
api-tilehut-d.<endpoint>

Usage

Create/Update S3 Bucket

The S3 bucket is managed via CFN Template in the .aws folder

aws cloudformation <create|update>-stack \
  --profile movelab \
  --stack-name lab-tilehut-tiles \
  --template-body file://./.aws/tiles.s3.yaml \
  --parameters ParameterKey=ServiceName,ParameterValue=lab-tilehut-tiles

Build Image

docker build . -t docker.intapps.it/tilehut:$(git rev-parse HEAD)

Start

docker run -p 8000:8000 docker.intapps.it/tilehut:$(git rev-parse HEAD)

Add Tiles

Upload the tiles into the s3 bucket via

aws s3 cp /path/to/file.name s3://lab-tilehut-tiles --profile movelab --region eu-west-1 --recursive

Add the following line to the dockerfile

RUN wget -O /usr/src/app/data/<filename>.mbtiles http://lab-tilehut-tiles.s3-website-eu-west-1.amazonaws.com/<filename>.mbtiles

About

A modest, but cozy home for your map tiles

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 60.9%
  • JavaScript 31.9%
  • Dockerfile 7.2%