Skip to content

Commit

Permalink
Update to README file.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Karim committed Jan 16, 2018
1 parent 8981475 commit 0303aae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
log/
db/
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM ruby:2.3.1
FROM ruby:2.3.6

RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN gem install rails
Expand All @@ -18,4 +18,4 @@ RUN mkdir /myapp
COPY . /myapp
WORKDIR /myapp
RUN bundle install
EXPOSE 3001
EXPOSE 3000
33 changes: 4 additions & 29 deletions README.md
@@ -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 removed log/development.log
Empty file.

0 comments on commit 0303aae

Please sign in to comment.