GithubHelp home page GithubHelp logo

lasrc-dockerfile's Introduction

lasrc-dockerfile

This repository contains cloudformation templates and Dockerfiles for running the EROS espa-surface-reflectance code on ECS.

The lasrc code requires a number of dependencies. To manage these dependencies in a more streamlined way the Dockerfile uses a base image which can be built using the usgs.espa.centos.external template defined in the espa-dockerfiles repository. See the instructions in the repository for building the external dependencies image.

After building the dependencies image, following the steps outlined here you can tag this image as 552819999234.dkr.ecr.us-east-1.amazonaws.com/espa/external and push it to ECR.

After building your base dependencies image and pushing it to ECR you can build the lasrc processing image with

$ docker build --tag lasrc .

You can then tag this lasrc image as 552819999234.dkr.ecr.us-east-1.amazonaws.com/lasrc and push it to ECR.

The lasrc processing code requires auxiliary data to run. To build the image contaning the scripts for downloading this data to a shared EFS mount point run

$ docker build --tag lasrc_aux ./lasrc_aux

You can then tags this lasrc_aux images as 552819999234.dkr.ecr.us-east-1.amazonaws.com/lasrc_aux and push it to ECR.

Now that we have the necessary images in ECR we can build the AWS infrastructure to run these containers as tasks. The included Cloudformation template contains all the necessary stack resources, to deploy a new stack run

$ ./deploy.sh

You will be prompted to enter a stack name. This script assumes you have configured your AWS credentials and that your account has sufficient permissions to create new resources. The remainder of the README will reference this stack name as yourstackname.

The lasrc auxiliary data also requires periodic updates to run these updates as a task you must first obtain an app key with the instructions here. Use the app key obtained here to set an environment variable with

$ export LAADS_TOKEN=yourappkey

Once you have set your LAADS_TOKEN to run an ECS task to download the daily updated auxiliary data run

$ ./run_lasrc_aux_update_task.sh yourstackname

This will start a task to download the Lasrc auxiliary data updates and fuse them with the exisiting auxiliary data on EFS. Once your auxiliary data is up to date you can run Lasrc for your updated time period.

To run Lasrc as a task for a Landsat granule run

$ ./run_lasrc_task.sh yourstackname landsat LC08_L1TP_027039_20190901_20190901_01_RT

To run Lasrc as a task for a Sentinel granule run

$ ./run_lasrc_task.sh yourstackname sentinel S2B_MSIL1C_20190902T184919_N0208_R113_T11UNQ_20190902T222415

lasrc-dockerfile's People

Contributors

sharkinsspatial 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.