-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deploy locally (not AWS) #224
Comments
@jlaura not a naive question at all. A while back this was an express API (easier to run locally) but that's deprecated now that we've moved to API Gateway. Because we aren't using SAM or serverless, there aren't great options to run this locally out of the box. Likely the "easiest" (but not that easy) way to run the API locally is by following the deploy instructions here until the deploy step and then running |
Hi @jlaura , you might want to check out the new STAC-API: https://github.com/stac-utils/stac-api |
@matthewhanson Thanks for the link. I have been able to make some more progress getting this running locally. I wanted to post some info in case it is of use for anyone else trying to set this up locally. Minio(S3) / Apache are running to store / serve the STAC compliant metadata, COGs, and thumbnail jpegs using the following docker-compose. Note that I am also using traefik locally, but this can be removed / omitted. Minio/Apache docker-compose.yml
We then need an elasticsearch backend to get the metadata pushed into. I am running this in yet another docker-compose: ElasticSearch docker-compose.yml
I am currently working on getting the ingest and api lambdas exposed as well in this setup. Luckily, lambci offers containers that I think will work. Lambda docker-compose.yml
Using curl, I can do an ingest without a problem: Next step is to test sat-search. I am running into a few issues here that I wonder if others might have insight:
Let me know if this info is helpful or if you all prefer users to focus on doing an AWS deploy. |
@drewbo @jlaura A bit late to the party but I am putting the finishing touches on a SAT-API stack running on a local openfaas /kubernetes cluster with a local ES/KB deployment: sat-api-openfaas. My notes aren't finished yet but it does appear to work per spec with the Sentinel-5P dataset hosted on AWS. Please let me know if you have any questions -- thanks! |
Apologies for the likely naive question. I have a local, test STAC-API compliant instance running on in a docker cluster (minio for the holding STAC compliant JSON files, Apache, etc.) and then have STAC-Browser serving these files out in the nice web instance.
I am interested in testing sat-api without pushing to AWS. So I have also set up an ES cluster and pushed the stac metadata into that. How do I go about deploying the sat-api locally?
My current attempts to use a simple docker-compose file with the API are failing and I am just guessing at the environment variables and the ports that I need to populate/expose.
The text was updated successfully, but these errors were encountered: