-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2be53a5
commit fa2445f
Showing
7 changed files
with
95 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
build: | ||
test: | ||
image: abakpress/dind-testing | ||
pull: true | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
- RUBY_IMAGE_TAG=2.2-latest | ||
commands: | ||
- wrapdocker docker -v | ||
|
||
- fetch-images | ||
--image abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
|
||
- dip provision | ||
- dip rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '1' | ||
|
||
environment: | ||
DOCKER_RUBY_VERSION: 2.2 | ||
RUBY_IMAGE_TAG: 2.2-latest | ||
COMPOSE_FILE_EXT: development | ||
RAILS_ENV: test | ||
|
||
compose: | ||
files: | ||
- docker-compose.yml | ||
- docker-compose.${COMPOSE_FILE_EXT}.yml | ||
|
||
interaction: | ||
sh: | ||
service: app | ||
|
||
irb: | ||
service: app | ||
command: irb | ||
|
||
bundle: | ||
service: app | ||
command: bundle | ||
|
||
rake: | ||
service: app | ||
command: bundle exec rake | ||
|
||
appraisal: | ||
service: app | ||
command: bundle exec appraisal | ||
|
||
rspec: | ||
service: app | ||
command: bundle exec appraisal bundle exec rspec | ||
|
||
clean: | ||
service: app | ||
command: rm -f Gemfile.lock gemfiles/*.gemfile.* | ||
|
||
provision: | ||
- docker volume create --name bundler_data | ||
- dip clean | ||
- dip bundle install | ||
- dip appraisal install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- bundler-data:/bundle | ||
|
||
volumes: | ||
bundler-data: | ||
external: | ||
name: bundler_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- /bundle:/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
image: abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
environment: | ||
- BUNDLE_PATH=/bundle/$DOCKER_RUBY_VERSION | ||
- BUNDLE_CONFIG=/app/.bundle/config | ||
command: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters