Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 63ebb08

Browse files
author
Federico Moya
committed
Dockerize project
1 parent cd6952a commit 63ebb08

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

‎Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ruby:2.4
2+
3+
WORKDIR /gem
4+
5+
COPY . .
6+
7+
RUN apt-get update -y && \
8+
gem install bundler:2.1.0 && \
9+
bundle install

‎Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ GEM
1111
byebug (11.1.3)
1212
docile (1.3.2)
1313
json (2.3.1)
14-
power_assert (1.1.3)
14+
power_assert (1.2.0)
1515
rake (13.0.1)
16-
simplecov (0.19.0)
16+
simplecov (0.18.5)
1717
docile (~> 1.1)
1818
simplecov-html (~> 0.11)
1919
simplecov-html (0.12.2)
20-
test-unit (3.2.9)
20+
test-unit (3.3.6)
2121
power_assert
2222

2323
PLATFORMS
@@ -30,4 +30,4 @@ DEPENDENCIES
3030
test-unit
3131

3232
BUNDLED WITH
33-
2.0.1
33+
2.1.0

‎Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.PHONY: image test sh
2+
3+
image:
4+
docker image build -t codeclimate/simplecov-json-formatter .
5+
6+
test:
7+
./bin/run-image rake
8+
9+
sh:
10+
./bin/run-image sh
11+

‎bin/run-image

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
exec docker run \
4+
-it --rm \
5+
--volume "$PWD:/gem" \
6+
codeclimate/simplecov-json-formatter "$@"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /