Giter Club home page Giter Club logo

docker-airflow's Introduction

I've basically automated a process that will run on your local machine. The process will:

  • Setup helm on your cluster
  • Get a version of Airflow running on this cluster that can spawn jobs off to said cluster.

For now, I'm not doing anything company specific, just running test workflows in airflow.

First, just clone the following git: https://github.com/dafrenchyman/docker-airflow.git

Go into the "kubernetes" folder and read the instructions at the top of the "install.sh" bash script to install docker and enable kubernetes on your mac. For your convenience, these are the instructions:

##############################################################

OSX instructions:

Install docker and enable kubernetes:

enable kubernetes:

- Top right go Docker -> "Preferences..." -> "Kubernetes"

- Check mark "enable kubernetes"

- Select "kubernetes" instead of swarm

##############################################################

Once that is done, just run the "install.sh" bash script.

When it's done running, it'll probably still be setting stuff up, but you'll eventually be able to hit: http://localhost:8080/admin

To test out spawning kubernetes tasks, just turn on the "kubernetes_sample" DAG.

If you want to shut down airflow, just check out the functions being run at the end of the script and comment out the running lines and uncomment the "uninstall_airflow" function.

There's also a really handy "Factory Reset" option in docker that I've been using all the time to just nuke everything and start over.

docker build -t docker-airflow .
docker tag docker-airflow dafrenchyman/docker-airflow:latest
docker push dafrenchyman/docker-airflow:latest

docker-airflow's People

Contributors

achm6174 avatar adamunger avatar ajhodges avatar arihantsurana avatar ashb avatar dafrenchyman avatar darkk avatar diraol avatar edrzmr avatar eshizhan avatar hadsed-genapsys avatar ianburrell avatar javioverflow avatar jbdalido avatar jmcarp avatar kaxil avatar kristi avatar lamroger avatar maxcountryman avatar medmrgh avatar mendhak avatar mhousley avatar msn1444 avatar odannyc avatar puckel avatar rootcss avatar ryanrussell avatar theodoresiu avatar ttaschke avatar

Stargazers

 avatar

Watchers

 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.