Ruby posts

Hello World in EC2 Container Service

31 Mar 2015   docker, ruby, aws

EC2 Container Service (ECS) is a new AWS deployment option for Docker containers. It was launched at the AWS Re-Invent conference in November 2014. Its still in a limited preview and its not yet in the AWS web console so you have to use the AWS CLI.

The first half of this post compares the Docker support in ECS and Elastic Beanstalk. The second half shows how to deploy a simple Hello World app to ECS. The Hello World example consists of 2 Docker containers. The client creates a JSON message and posts it to a SQS queue. The server polls the queue for messages and outputs the contents to stdout. The example is written in Ruby and split into 2 so you can see how multiple containers can be deployed to the same EC2 instance.

Running a Rails app on Docker using the Passenger image

06 Mar 2015   docker, ruby

This is a 2-part post on getting a Rails app running on Docker using the Passenger image from Phusion. This first part covers setting up a development environment using Docker Compose (formerly called Fig) and boot2docker. The second part will cover deploying the Rails app as a container to AWS using Elastic Beanstalk.

Adding DBpedia data to WikiReverse

15 Feb 2015   ruby, wikireverse is my open data project using Common Crawl data. It’s a reverse link graph with 36 million external links to 4 million Wikipedia articles. One of the reasons I chose Wikipedia as the topic is because there is a wealth of open data released by Wikipedia and built using their data.

One of the enhancements I’m making to the WikiReverse site is to make browsing more interesting by categorising the articles and adding images. To do this I’m using data from the DBpedia project. They take the raw data dumps released by Wikipedia and create structured datasets for many facets of the data including categories, images and geographical locations.

Page: 1 of 2