Created
July 21, 2020 03:45
-
-
Save EvgenyKungurov/f48f2c1e7a83cc8a7f71abb7890c8cc6 to your computer and use it in GitHub Desktop.
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
version: '2.1' | |
services: | |
app: | |
image: ${CI_REGISTRY:-registry.southbridge.io}/${CI_PROJECT_NAMESPACE:-web}/${CI_PROJECT_NAME:-slurm}:${CI_COMMIT_REF_SLUG:-local}.${CI_PIPELINE_ID:-1} | |
environment: | |
DB_HOST: db | |
DB_PORT: 5432 | |
DB_USER: postgres | |
DB_PASSWORD: postgres | |
DB_NAME: slurm_test | |
DB_WAIT_TIMEOUT: 60 | |
SELENIUM_HOST: selenium | |
SELENIUM_PORT: 4444 | |
RAILS_ENV: test | |
RAILS_LOG_TO_STDOUT: 1 | |
COVERAGE: 'true' | |
command: /bin/sh -c 'bundle exec rake db:migrate && bundle exec rspec spec; exitcode=$$?; chmod -R 777 coverage; if [ $$exitcode -ne 0 ]; then exit 1; fi' | |
volumes: | |
- ./coverage:/app/coverage | |
depends_on: | |
db: | |
condition: service_healthy | |
db: | |
image: postgres:11 | |
environment: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: slurm_test | |
healthcheck: | |
test: ["CMD", "pg_isready", "-U", "postgres"] | |
interval: 1s | |
timeout: 1s | |
retries: 60 | |
logging: | |
driver: none | |
selenium: | |
image: selenium/standalone-chrome-debug:3.7 | |
logging: | |
driver: none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment