Coder Social home page Coder Social logo

tesselo / stac-fastapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stac-utils/stac-fastapi

0.0 0.0 0.0 1.11 MB

STAC API implementation with FastAPI.

Home Page: https://stac-utils.github.io/stac-fastapi/

License: MIT License

Dockerfile 0.19% Makefile 0.57% Python 97.24% Mako 0.14% Shell 1.87%

stac-fastapi's Introduction

Tesselo

Copyright (c) 2021 Space Mosaic Lda

Docker

The Tesselo docker image is a python 3.6 based image that is stripped down and resembles the AWS Lambda environment. The worker docker instance is more heavy and contains libraries that are not used for the web app (such as scipy, sen2cor, etc).

Zappa create superuser

zappa invoke dev "printf \"from django.contrib.auth.models import User; User.objects.create_superuser('daniel2', '[email protected]', 'adminpass')\" | python manage.py shell" --raw

or alternatively

zappa invoke dev "from django.contrib.auth.models import User; User.objects.create_superuser('daniel2', '[email protected]', 'adminpass')" --raw

Casperjs install on ubuntu

sudo npm install -g [email protected] --unsafe-perm
sudo npm install casperjs

Zappa envents disabled

Zappa can not handle the sentinel topic subscriptions because the events are not owned by Tesselo, which raises permissions errors on boto3.

The following events are currently active, but not anymore managed by Zappa until the events are put back into the config file.

"keep_warm": true,
"events": [
  {
    "function": "apps.sentinel.tasks.push_scheduled_composite_builds",
    "expression": "cron(0 12 ? * MON-SUN *)"
  },
  {
    "function": "apps.sentinel.tasks.process_sentinel_sns_message",
    "event_source": {
      "arn": "arn:aws:sns:eu-west-1:214830741341:NewSentinel2Product",
      "events": [
        "sns:Publish"
      ]
    }
  },
  {
    "function": "apps.sentinel_1.tasks.process_sentinel_sns_message",
    "event_source": {
      "arn": "arn:aws:sns:eu-central-1:214830741341:SentinelS1L1C",
      "events": [
        "sns:Publish"
      ]
    }
  }
]

Docker setup

Location of docker files: /etc/docker/daemon.json

stac-fastapi's People

Contributors

aaronxsu avatar alukach avatar bitner avatar briangmaddox avatar darrenwiens avatar davidraleigh avatar drnextgis avatar edkeeble avatar geospatial-jeff avatar jaysnm avatar jclark-indigoag avatar jonhealy1 avatar kylebarron avatar lossyrob avatar mmcfarland avatar moradology avatar mshalak-nix avatar nmandery avatar philvarner avatar robintw avatar tomaugspurger avatar vincentsarago avatar yellowcap avatar zstatmanweil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.