/shrug_docker

Hands on Docker starter kit

Primary LanguageMakefile

This starter kit will let you build and run your own Rails container. You will need to have Docker and Make installed.


Add the Makefile an Dockerfile to your app's root folder and run:

  • make - to build the container
  • make run - run the container

Once Rails boots your app will be available at the usual: http://localhost:3000


Also for ease of use some utility commands:

  • make attach - start a bash session within the container
  • make console - start a Rails console within the container
  • make start - start previously created container

This build is based on the official Ruby Docker image and runs Ruby 2.2.1.

Enjoy!
Val
@webmadespecial


Useful links:

Docker Cheat Sheet Official Ruby Docker repo