GithubHelp home page GithubHelp logo

pycon2018-luigi's Introduction

Intro

Luigi in dockerized version to be used during PyCon 2018 tutorial.

Prerequisites

Install Docker: https://docs.docker.com/install/

Install docker-compose: https://docs.docker.com/compose/install/

Please ensure port 8082 is not used on your system before following the instructions.

Instructions:

  1. Clone the repo.

  2. Run:

docker-compose up

You can optionally add -d flag if you prefer it to run in the background.

  1. Verify you can access Luigi UI at: http://localhost:8082.

  2. Run your first dag using docker exec pycon2018luigi_scheduler_1 python3 dags/hello_world.py HelloWorldTask.

Optional: Create a virtualenv and run pip install luigi to receive IDE autocompletion.

Alternative Installation:

In case of WiFi issues at the venue or just slow installation, we will have several USB drives in the class.

  1. Copy the .tar files from USB drive.

  2. For each file run:

docker load --input <file-name>
  1. Navigate back to the repo directory. Follow steps 2 and 3 from above.

Tutorial:

The dags directory is where you will put the DAGS you will create. It is mapped into /usr/local/luigi/dags in the containers.

Input files are located in /usr/local/luigi/datafiles. Methods are provided in the exercise modules to get file locations.

Consult the hints or solutions directory if you need to.

pycon2018-luigi's People

Contributors

a-hacker avatar

Watchers

Thomas Johnson 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.