-
Notifications
You must be signed in to change notification settings - Fork 8
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
Pavel Galkin
committed
Apr 27, 2017
1 parent
5ad69e0
commit a4f458c
Showing
11 changed files
with
121 additions
and
21 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,25 @@ | ||
build: | ||
test: | ||
image: abakpress/dind-testing | ||
pull: true | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
- /home/data/drone/key_cache:/ssh_keys | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
- POSTGRES_IMAGE_TAG=9.3-latest | ||
- SPHINX_IMAGE_TAG=2.2-latest | ||
commands: | ||
- wrapdocker docker -v | ||
|
||
- fetch-images | ||
--image whilp/ssh-agent | ||
--image abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
--image abakpress/postgres-db:$POSTGRES_IMAGE_TAG | ||
--image abakpress/sphinx-index:$SPHINX_IMAGE_TAG | ||
|
||
- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa | ||
- 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,5 @@ | ||
--color | ||
--tty | ||
--format progress | ||
--order random | ||
--backtrace |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'json', '< 2' if RUBY_VERSION < '2' | ||
gem 'activesupport', '< 5' if RUBY_VERSION < '2' | ||
|
||
gemspec |
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
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,43 @@ | ||
version: '1' | ||
|
||
environment: | ||
DOCKER_RUBY_VERSION: 2.2 | ||
RUBY_IMAGE_TAG: 2.2-latest | ||
COMPOSE_FILE_EXT: development | ||
RAILS_ENV: test | ||
APRESS_GEMS_CREDENTIALS: "" | ||
|
||
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 | ||
|
||
rspec: | ||
service: app | ||
command: bundle exec rspec | ||
|
||
clean: | ||
service: app | ||
command: rm -f Gemfile.lock gemfiles/*.gemfile.* | ||
|
||
provision: | ||
- docker volume create --name bundler_data | ||
- dip bundle config --local https://gems.railsc.ru/ ${APRESS_GEMS_CREDENTIALS} | ||
- dip clean | ||
- dip bundle 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,18 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- ../:/localgems | ||
- ssh-data:/ssh:ro | ||
- bundler-data:/bundle | ||
|
||
volumes: | ||
bundler-data: | ||
external: | ||
name: bundler_data | ||
|
||
ssh-data: | ||
external: | ||
name: ssh_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,13 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- /bundle:/bundle | ||
- ssh-data:/ssh:ro | ||
|
||
volumes: | ||
ssh-data: | ||
external: | ||
name: ssh_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,10 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
image: abakpress/ruby-app:$RUBY_IMAGE_TAG | ||
environment: | ||
- SSH_AUTH_SOCK=/ssh/auth/sock | ||
- 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
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
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