Skip to content

Commit

Permalink
T-60 Docker Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Aug 10, 2020
1 parent 6883680 commit 818e014
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gemfile.lock
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,15 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/marian

* Update docs: `bundle exec sdoc lib -T rails -o docs`.

## Development with Docker

* Build container `docker build . -f docker/Dockerfile-2.3 -t basic_temperature_2.3`.

* Run specs inside container `docker run -it basic_temperature_2.3:latest bundle exec rspec`.

* Interactive shell inside container `docker run -it basic_temperature_2.3:latest bash`.
* 2.3 can be replaced by 2.4, 2.5, 2.6 and 2.7.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Expand Down
Binary file added docker/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions docker/Dockerfile-2.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.3

RUN mkdir -p /gem
WORKDIR /gem

COPY . /gem
RUN bundle install
7 changes: 7 additions & 0 deletions docker/Dockerfile-2.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.4

RUN mkdir -p /gem
WORKDIR /gem

COPY . /gem
RUN bundle install
7 changes: 7 additions & 0 deletions docker/Dockerfile-2.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.5

RUN mkdir -p /gem
WORKDIR /gem

COPY . /gem
RUN bundle install
7 changes: 7 additions & 0 deletions docker/Dockerfile-2.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.6

RUN mkdir -p /gem
WORKDIR /gem

COPY . /gem
RUN bundle install
7 changes: 7 additions & 0 deletions docker/Dockerfile-2.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.7

RUN mkdir -p /gem
WORKDIR /gem

COPY . /gem
RUN bundle install

0 comments on commit 818e014

Please sign in to comment.