Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Karim
committed
Jan 16, 2018
1 parent
8981475
commit 0303aae
Showing
4 changed files
with
8 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
log/ | ||
db/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,18 @@ | ||
## README | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
|
||
Things you may want to cover: | ||
|
||
* Ruby version | ||
|
||
* System dependencies | ||
|
||
* Configuration | ||
|
||
* Database creation | ||
|
||
* Database initialization | ||
|
||
* How to run the test suite | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
|
||
* Deployment instructions | ||
|
||
* ... | ||
This is a template of a Rails 4 basic application that can be run on Docker. | ||
|
||
To build the image necessary to run the tools: | ||
|
||
`docker build -t dkarim/a_test .` | ||
|
||
To shell in to a container and actually run the tools. This will shell in to the container and mount your own AWS creds so you can use AWS_PROFILE variable. It will also share you bash history between your host and the container | ||
To start the Rails server issue command below. This will run Rails and mount your own AWS credentials so you can use AWS_PROFILE variable. It will also share you bash history between your host and the container | ||
|
||
``` | ||
docker run \ | ||
docker run -p 8080:3000 \ | ||
-e "HOME=/home" \ | ||
-v $HOME/.aws:/home/.aws \ | ||
-v ~/.bash_history:/root/.bash_history \ | ||
-v $(pwd):/myapp \ | ||
-it dkarim/a_test /bin/bash | ||
-it dkarim/a_test rails s --binding=0.0.0.0 | ||
``` | ||
|
||
|
||
Please feel free to use a different markup language if you do not plan to run | ||
<tt>rake doc:app</tt>. |
Empty file.