Run Ruby in Docker
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.