geotrellis / geotrellis-pointcloud-demo

GeoTrellis PointCloud Demo
https://pointcloud.geotrellis.io/
Apache License 2.0
7 stars 5 forks source link

Convert demo to standard GeoTrellis deployment framework #12

Closed tnation14 closed 5 years ago

tnation14 commented 7 years ago

Overview

This PR adds a pipeline to build/deploy API Server and Nginx Containers to AWS. Also, add Terraform resources for an AWS ECS Service, using CloudFront as a CDN.

Notable changes

Notes

Testing

Fixes #11

lossyrob commented 6 years ago

Having trouble running this. I ran scripts/setup.sh, and then inside the vm scripts/cibuild.sh and scripts/server.sh. Navigating to localhost:8000 I'm getting:

screen shot 2017-10-10 at 9 15 17 pm

Am I skipping a step?

tnation14 commented 6 years ago

I don't think so; I just rebuilt my VM from scratch and was able to run scripts/setup.sh and scripts/server.sh, then hit localhost:8000. scripts/setup.sh runs scripts/update.sh; did any part of that script fail? It seems like the JavaScript bundle didn't build properly.

tnation14 commented 6 years ago

@lossyrob Just wanted to circle back and see if you were able to fix your Dev environment issues. Did you have any success after running scripts/update again?

lossyrob commented 6 years ago

Thanks for looping back - I didn't have a watch on on this repo until today, and so didn't see your comment. The Azavea GeoTrellis team is putting this on their next sprint - and if someone else doesn't pick it up I'll be able to take a look when I get from State of the Map travels next week.

echeipesh commented 6 years ago

Encountered the same error as @lossyrob but after vagrant destroy vagrant up ./scripts/setup.sh and ./scripts/update.sh inside the container I was able to see the index.html but the page is unresponsive and the service is is throwing 500 which I have not investigated yet.

I had to bump the dependencies for geotrellis-pointcloud to newly published branch. I assume you guys must have been doing publish-local from feature branch in order to have 1.1.0-PC-SNAPSHOT artifact available? I also assume the demo was working fine with that so I'm possibly looking at some kind of regression with the update to published geotrellis-pointcloud.

tnation14 commented 6 years ago

I was able to see the index.html but the page is unresponsive and the service is is throwing 500 which I have not investigated yet.

I ran into this locally, and it was because the API server was silently failing to start with OOM errors. I had some success by setting JAVA_OPTS="-Xmx512M" in the environment section for pc-api-server in docker-compose.yml . Doing

$ docker-compose run --rm pc-api-server

Will start the API server only, so you can see if that is indeed the issue without seeing any other output from Nginx/webpack.

II had to bump the dependencies for geotrellis-pointcloud to newly published branch. I assume you guys must have been doing publish-local from feature branch in order to have 1.1.0-PC-SNAPSHOT artifact available?

Do you mean did I update the geotrellis-pointcloud version? I didn't, this demo is still using 0.1.0-PC-SNAPSHOT. I just corrected a typo in the JAR name.

pomadchin commented 5 years ago

It is a part of https://github.com/geotrellis/geotrellis-pointcloud-demo/pull/16 now