<repo_name>KAllan357/telephone<file_sep>/README.md
# Telephone

A simple REST client application that is intentionally missing features. This application is meant to be
worked on in conjunction with an [Answering Machine](https://github.com/KAllan357/answering-machine)

# Instructions

1. Fill in the Dockerfile
2. Fix the FIXME's in `telephone.rb`

# The Goal

To learn various Dockerfile commands:

* FROM, MAINTAINER
* RUN
* ADD
* CMD
<file_sep>/telephone.rb
require 'httparty'

# FIXME
sender = "Telemarketer Bob"

# FIXME
message = "I have a credit card offer you can't refuse."

# FIXME
url = "http://localhost:8080/messages"
json = { from: sender, body: message }

response = HTTParty.post(url, body: JSON.generate(json))
<file_sep>/Dockerfile
# See the reference doc - http://docs.docker.com/reference/builder/

# FROM - what is the base image for this Dockerfile? http://docs.docker.com/reference/builder/#from
# MAINTAINER - who owns this Dockerfile? http://docs.docker.com/reference/builder/#maintainer

# Install Ruby - perhaps from a package manager? http://docs.docker.com/reference/builder/#run

# Install the 'httparty' gem - how do you install gems? http://docs.docker.com/reference/builder/#run

# ADD the telephone(.rb) application - http://docs.docker.com/reference/builder/#add

# Write a CMD - http://docs.docker.com/reference/builder/#cmd
