Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
spikewilliams committed Oct 7, 2016
1 parent 0037ff0 commit c7e820c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
#rails4windocker 0.1
##Ruby on Rails on Docker for Windows
#rails4windocker: Ruby on Rails on Docker for Windows

This creates a Ruby on Rails development environment that is shared between your Windows 10 desktop and a Docker container running CentOS. Use the bash command-line to administer Rails in a stable Linux environment, while accessing your code through Windows Explorer and the text editor of your choice.

This is a development and testing environment. Don't run it in production - its not secure.


To use:
Instructions:

First, get Docker for Windows running.
First, get Docker for Windows installed and running. Good luck. - https://docs.docker.com/docker-for-windows/

https://docs.docker.com/docker-for-windows/
Now run the following from a cmd shell.

Now run the following from a cmd shell:

To build the container
To build the container:

buildimage.bat

To run the container on Docker for Windows
To run the container on Docker for Windows:

runimage.bat

Expand Down Expand Up @@ -51,3 +48,11 @@ Now run the following from a cmd shell:

rails server -b 0.0.0.0
#Yes, you need to specify the loopback address

Now open a browser in Windows to connect to 127.0.0.1:3000. You should see the default Rails welcome page.

Things to know:

* The CentOS install running in the Docker should have enough features to run some basic gems, but if you need more tools installed under that environment, use "yum install <tool>" at the bash prompt.
* Keep in mind that your environment will forget these tools after the Docker image resets upon exiting.
* So, any yum installs that you want installed permanently should be added to the Dockerfile, then the docker image should be rebuilt using buildimage.bat.

0 comments on commit c7e820c

Please sign in to comment.