An intro to Docker, Terraform, and Amazon ECS

This talk is a very quick intro to Docker, Terraform, and Amazon's EC2 Container Service (ECS). In just 15 minutes, you'll see how to take two apps (a Rails frontend and a Sinatra backend), package them as Docker containers, run them using Amazon ECS, and to define all of the infrastructure-as-code using Terraform.

32.
> docker pull rails:4.2.6
And you can reuse images created
by others.

33.
FROM rails:4.2.6
RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN bundle install
EXPOSE 3000
CMD ["rails", "start"]
The rails-frontend is built on top of
the official rails Docker image