Skip to content

Commit e143ec8

Browse files
committed
Add a Dockerfile and compose to help run tests
1 parent 03fb5dd commit e143ec8

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ features/config.yml
55
logs/bbb.log
66
rdoc/
77
logs/*
8-
.bundle/
8+
.bundle/
9+
.volumes/

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ruby:2.3.8
2+
3+
ENV app /usr/src/app
4+
5+
# Create app directory
6+
RUN mkdir -p $app
7+
WORKDIR $app
8+
9+
# Bundle app source
10+
COPY . $app
11+
12+
# Install app dependencies
13+
RUN bundle install

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '2'
2+
services:
3+
4+
test:
5+
build: .
6+
tty: true
7+
volumes:
8+
- $PWD:/usr/src/app
9+
- .volumes/bundle/:/usr/local/bundle
10+
command: bundle exec rake

0 commit comments

Comments
 (0)