Git Product home page Git Product logo

ironworkerdebfinder's Introduction

Iron Worker Dependency Finder

This project figures out what dependencies your libraries need to run on Iron Worker.

Iron Worker, from Iron.io, "runs tasks in the background, in parallel, at massive scale." Your worker may need libraries that are not installed by default in the Iron Worker environment. Unfortunately, you can't use sudo apt-get during your worker build process, because your build process won't have access to sudo.

Alternately, you can use the deb command in your .worker file to install dependencies. However, .deb files don't handle dependencies. You're on your own to figure out which dependencies are needed. And figuring that out can be incredibly painful.

This project makes it simple. It runs a worker on Iron Worker, and spits out a list of dependencies needed for your libraries.

Usage

  1. Clone this repo.
git clone https://github.com/johntitus/IronWorkerDebFinder.git
  1. Modify the iron.json file to have your token and project_id.

  2. Upload the worker to Iron Worker.

iron_worker upload depfinder
  1. Queue a task for the worker in the Iron Worker GUI.
  • Log into Iron.io and select your Project workers.

  • Click on the depfinder worker.

  • Click the Queue a Task button. A modal window will open up.

  • In the Payload area of the modal window, put in the name of the libraries you need to use. For example, libphash0-dev cimg-dev.

  • Click Queue Task

  1. Read the Task Log to get a list of the dependencies needed.

The worker outputs the list of dependencies to stdout, which you can read in the Task Log. It should look something like this:

Dependencies for libphash0-dev cimg-dev
http://archive.ubuntu.com/ubuntu/pool/universe/libp/libphash/libphash0_0.9.4-1.2_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/universe/libp/libphash/libphash0-dev_0.9.4-1.2_amd64.deb
http://us.archive.ubuntu.com/ubuntu/pool/universe/m/mpg123/libmpg123-0_1.15.3-1ubuntu1_amd64.deb
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cimg/cimg-dev_1.4.9-2build2_all.deb

Turn each of those dependencies into a deb line in your real worker's .worker file, and you should be good to go!

Important Note

The depfinder worker runs in the ffmpeg-2.3 stack inside of Iron Worker. If you're using a different stack, be sure to modify the depfinder.worker to use whichever stack your worker will be running in.

ironworkerdebfinder's People

Stargazers

 avatar  avatar

Watchers

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