Sha256: d12f70fda0136251822b810e82f8b1cae0dd6ab3b9829d2d8437547a18d9fdf8

Contents?: true

Size: 1.57 KB

Versions: 8

Compression:

Stored size: 1.57 KB

Contents

# Required minimum dip version
version: '7.5'

environment:
  RAILS_ENV: development

compose:
  files:
    - docker-compose.yml
    - docker-compose.override.yml # platform specific overrides

interaction:
  sh:
    description: Open a Bash shell within a Rails container (with dependencies up)
    command: /bin/bash
    service: rails_key_rotator

  bash:
    description: Run an arbitrary script within a container (or open a shell without deps)
    command: /bin/bash
    service: rails_key_rotator

  bundle:
    description: Run Bundler commands
    command: bundle
    service: rails_key_rotator

  rake:
    description: Run Rake commands
    command: bundle exec rake
    service: rails_key_rotator

  guard:
    description: Run red-green-red refactor loop using guard
    environment:
      RAILS_ENV: test
    command: bundle exec guard
    service: rails_key_rotator

  rspec:
    description: Run Rails tests
    environment:
      RAILS_ENV: test
    command: bundle exec rspec
    service: rails_key_rotator

provision:
  # Dip requires .env to do anything
  - touch .env

  # Remove old containers and volumes.
  - dip compose down --volumes --remove-orphans
  - docker volume create rails_key_rotator-history
  - dip compose build

  # Install gems
  - dip bundle install

  # Setup configuration files if they do not (yet) exist
  # use `|| true` to fix error when /bin/cp is used (which returns 1 when file exists)
  - cp -n docker-compose.override.yml.example docker-compose.override.yml || true
  - cp -n .env.local.example .env.local || true
  - cp -n .env.example .env || true

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_key_rotator-0.2.4 dip.yml
rails_key_rotator-0.2.3 dip.yml
rails_key_rotator-0.2.2 dip.yml
rails_key_rotator-0.2.1 dip.yml
rails_key_rotator-0.2.0 dip.yml
rails_key_rotator-0.1.3 dip.yml
rails_key_rotator-0.1.2 dip.yml
rails_key_rotator-0.1.1 dip.yml