Skip to content
Permalink
Browse files

Update docker tests [skip ci]

  • Loading branch information...
mdp committed Feb 27, 2019
1 parent c859d3b commit 397e940b078224db41ca2f0c1e97842eac81d4e4
Showing with 42 additions and 47 deletions.
  1. +0 −15 Dockerfile-1.9
  2. +11 −0 Dockerfile-2.0
  3. +0 −16 Dockerfile-2.1
  4. +0 −16 Dockerfile-2.3
  5. +10 −0 Dockerfile-2.5
  6. +11 −0 Dockerfile-2.6
  7. +10 −0 README.md

This file was deleted.

Oops, something went wrong.
@@ -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"]

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -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"]
@@ -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"]

@@ -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

0 comments on commit 397e940

Please sign in to comment.
You can’t perform that action at this time.