Giter Site home page Giter Site logo

agrc / geocode-job Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 1.0 18 KB

The process for comparing vista data with agrc addresses data in the google cloud

HTML 3.94% Dockerfile 0.37% Python 95.69%
government government-tech google-cloud kubernetes python netcore2-webapi template

geocode-job's Introduction

Geocode-job

Create a containerized python geocoding script as a kubernetes job.

Steps to run

  1. Prepare data
    1. Run prep_addresses.py
      • Pulls data from VISTA
      • Partions the data into multiple CSVs
  2. Create k8s job yaml specifications
    1. Run vista_job_template.py
  3. Apply seceret for service worker with cloud storage permissions to k8s cluster
    1. authorize kubectl with geocoding api cluster
    2. run kubectl apply -f .secrets/gcs-secret.yml
      • Service account key must first be base64 encoded into gcs-secret.yml
  4. Apply job yamls to cluster
    1. run kubectl apply -f job.yaml
  5. Download geocoded CSVs from cloud storage

Steps to build

  1. Build container from docker file
    1. docker build . -t {container name}
    2. docker tag {container name}:latest gcr.io/{project id}/webapi/{container name}:latest
  2. Push to registery
    1. docker push gcr.io/{project id}/webapi/{container name}:latest
    2. User needs project permissions to allow push to gcr

geocode-job's People

Contributors

keatonwalker avatar steveoh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gregbunce

geocode-job's Issues

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.