alex-litvak / iron-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker + Iron.io

Table of Contents

Requirements

  • Docker installed on your machine. The installation guide is here;
  • Docker Hub account. Register here if you still don't have it;
  • Iron.io account (register here);
  • Install IronWorker command line tool (IronCli)

Write and test your code

In this tutorial we will use nokogiry to parse html document. Look through scrabe.rb file in current repository. Let's run it inside the iron/ruby image. Execute the following command in terminal:

$ sudo docker run --rm -it -v "$PWD":/worker -w /worker iron/ruby ruby scrape.rb

About


Languages

Language:Ruby 100.0%