juanonsoftware / PocRubyOnRails

Learn RoR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

- Pull the Ruby container
docker pull ruby:alpine

- Start a container
docker run -it --rm ruby:alpine /bin/sh

- Now we can verify version of Ruby in the container
ruby -v

- To mount current folder to code folder to Ruby container, we can run below command:
docker run -it --rm -v .:/code ruby:alpine /bin/sh

- To start Ruby on Rails container, we can run below command:
docker run -it --rm -p 3000:3000 -v .:/code mydockeruniversity/blog-rubyonrails /bin/sh

- Now update gem
gem update --system 3.4.22

About

Learn RoR


Languages

Language:Ruby 77.1%Language:HTML 15.1%Language:Dockerfile 3.6%Language:JavaScript 2.4%Language:CSS 1.4%Language:Shell 0.4%