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 containermake 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 containermake console
- start a Rails console within the containermake 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: