Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.27 KB

File metadata and controls

39 lines (26 loc) · 1.27 KB
title nextpage
Run Ruby in Docker
cleanup

{% include nav.html %}

Sample Ruby App that Reads Mysql

Dockerfile that builds the Ruby App

Build the Ruby Image

docker build -t myruby examples/session1/ruby/

Run the Ruby Container

docker run --rm -it -p 4567:4567 --network mynet --name rubyserver myruby

Open a web page for the application

  • Sample Ruby App
  • Navigate to the listing page
  • Note that the users are present in the table

Press Cntl-C to exit the container.

{% include next.html %}