Git Product home page Git Product logo

nagyistge / iron-io.dockerworker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iron-io/dockerworker

0.0 2.0 0.0 12.06 MB

The new IronWorker workflow examples. Test locally, then upload and start queuing jobs!

Home Page: http://www.iron.io

Elixir 17.04% C 0.69% Go 2.26% Java 19.44% Kotlin 10.21% C# 5.37% JavaScript 3.72% PHP 3.36% Python 4.42% Ruby 8.02% Shell 5.33% Scala 20.14%

iron-io.dockerworker's Introduction

Docker Worker

What is this?

Use the Iron.io Docker stacks to locally dev and test your IronWorker workers in the exact same environment it will have when running remotely on the IronWorker cloud.

The New Workflow

The new workflow is much simpler and quicker. The general workflow is the following:

  1. Create your worker. All dependencies must in the current directory or in sub-directories.
  2. Create an input/payload example file (check this into source control as an example)
  3. Run your worker locally inside an Iron.io Stack container.
  4. Debug/test until you get it working properly.
  5. Once it works like you want it to, upload it to IronWorker. You should only have to do this once until you want to make changes.

Getting Started

1. You'll need Docker installed and running on your machine to use this. Run:

docker info

This should print information about your Docker installation. If it doesn't, you don't have Docker setup properly.

2. You'll want to install the new Iron cli tool as well (not totally necessary, but makes things a lot easier):

curl -sSL https://cli.iron.io/install | sh

Or if you'd prefer to download it yourself, you can grab the latest release from here: https://github.com/iron-io/ironcli/releases

3. Check that the Iron cli tool was installed properly:

iron --version

4. Clone this repo:

git clone https://github.com/iron-io/dockerworker.git

And cd into the directory:

cd dockerworker

Now you're ready to try the examples, choose the directory for the language you want to try.

Troubleshooting

Windows Users

If you are using boot2docker on Windows, please note the following:

The Linux VM in the boot2docker VirtualBox maps the c/Users directory in the VM instance to the C:\Users folder in Windows. So be sure your source code for your worker is in a folder under C:\Users, then cd to that folder in the context of the VM (in Boot2Docker terminal) and run it from there.

iron-io.dockerworker's People

Contributors

treeder avatar arschles avatar alex-litvak avatar thousandsofthem avatar ulandj avatar john-paul-keenan avatar tgriffith-gpsw avatar m-x-k avatar dnahodil avatar pgburt avatar pyeremenko avatar pulkitsinghal avatar rkononov avatar rogerdk 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.