Skip to content

Commit

Permalink
Update docker tests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdp committed Feb 27, 2019
1 parent c859d3b commit 397e940
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 47 deletions.
15 changes: 0 additions & 15 deletions Dockerfile-1.9

This file was deleted.

11 changes: 11 additions & 0 deletions Dockerfile-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:2.0

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
COPY . /usr/src/app
RUN bundle install

CMD ["bundle", "exec", "rspec"]

16 changes: 0 additions & 16 deletions Dockerfile-2.1

This file was deleted.

16 changes: 0 additions & 16 deletions Dockerfile-2.3

This file was deleted.

10 changes: 10 additions & 0 deletions Dockerfile-2.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ruby:2.5

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
COPY . /usr/src/app
RUN bundle install

CMD ["bundle", "exec", "rspec"]
11 changes: 11 additions & 0 deletions Dockerfile-2.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:2.6

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/
COPY . /usr/src/app
RUN bundle install

CMD ["bundle", "exec", "rspec"]

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ bundle install
bundle exec rspec
```

### Testign with Docker

In order to make it easier to test against different ruby version, ROTP comes
with a set of Dockerfiles for each version that we test against in Travis

```bash
docker build -f Dockerfile-2.6 -t rotp_2.6 .
docker run --rm -v $(pwd):/usr/src/app rotp_2.6
```

## Executable Usage

The rotp rubygem includes an executable for helping with testing and debugging
Expand Down

0 comments on commit 397e940

Please sign in to comment.