- 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)
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