Giter VIP home page Giter VIP logo

terraclimate-feedstock-archive's Introduction

terraclimate-feedstock

A pangeo-smithy repository for the terraclimate dataset.

Notes

  1. Who does what?

Ideally we cleanly separate the two concerns

  1. recipe writer: details about how to e/t/l the data.
  2. pangeo-forge: details about how to execute the flow.
  • environment.
  • storage.
  • CLI to register, execute flows.
  1. Execution environment?

Reproducibility argues for a Docker image. You could in theory run this anywhere.

-----------

Merge notes from other

  1. Add a ServiceAccount

This needs to have read / write access to pangeo-forge-scratch (like pangeo) and have the ability to start / stop pods for dask-kubernetes. We don't want to give the pangeo SA permissions to read / write, so we'll make a new one.

$ kubectl apply -f daskkubernetes.yaml
serviceaccount/pangeo-forge created
role.rbac.authorization.k8s.io/pangeo-forge created
rolebinding.rbac.authorization.k8s.io/pangeo-forge created
  1. Create a GSA
$ gcloud iam service-accounts create pangeo-forge --display-name=pangeo-forge --description="GSA for pangeo-forge. Grant read / write access to gcs://pangeo-forge-scratch."
Created service account [pangeo-forge].
$ gcloud iam service-accounts add-iam-policy-binding \
  --role roles/iam.workloadIdentityUser \
    --member "serviceAccount:pangeo-181919.svc.id.goog[staging/pangeo-forge]" \
      [email protected]
Updated IAM policy for serviceAccount [[email protected]].
bindings:
- members:
  - serviceAccount:pangeo-181919.svc.id.goog[staging/pangeo-forge]
  role: roles/iam.workloadIdentityUser
etag: BwWuWOjv5tg=
version: 1

terraclimate-feedstock-archive's People

Contributors

dependabot[bot] avatar jhamman avatar tomaugspurger avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

terraclimate-feedstock-archive's Issues

Connecting to Prefect-Cloud and CI

I've thrown this feedstock together to help us explore how to connect a CI system (e.g. GitHub Actions) to a Dask-Gateway Cluster / Prefect Cloud. The repository is laid out as follows:

  • recipe.pipeline - A python module ready with a PangeoForge.Pipeline object in it. Import as from recipe.pipeline import pipeline.
  • run.py - A simple python script that imports the above described pipeline and (for now) prints some info about the flow contained therein.
  • .github.workflows.main - A github action that installs a few dependencies and executes run.py.

@TomAugspurger - hopefully this has the needed pieces to connect to what you were working on with Prefect Cloud.

cc @rabernat

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.