Skip to content

Commit

Permalink
Add environment and interaction settings to dip.yml (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander authored Nov 27, 2024
1 parent e02f444 commit 847b8af
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/dip.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/bibendi/dip/refs/heads/master/schema.json

version: '8.1.0'

environment:
Expand All @@ -7,6 +9,8 @@ environment:
REDIS_URL: redis://redis:6379/0
PORT: ${PORT:-3000}
APP_PORT: ${PORT:-3000}
ENABLE_WEB_CONSOLE: true
WORKER_CONCURRENCY: 4

compose:
files:
Expand Down Expand Up @@ -35,6 +39,10 @@ interaction:
shell: true
entrypoint: /docker-entrypoint.sh
runner: docker_compose
pod: web
compose_run_options:
- service-ports
- rm
subcommands:
console:
description: Start Rails console
Expand Down Expand Up @@ -82,6 +90,15 @@ interaction:
- rm
profiles:
- test
subcommands:
all:
command: bundle exec appraisal rspec
rails-6.0:
command: bundle exec appraisal rails-6.0 rspec
rails-6.1:
command: bundle exec appraisal rails-6.1 rspec
rails-7.0:
command: bundle exec appraisal rails-7.0 rspec

shell:
description: Start a shell in the web container
Expand Down

0 comments on commit 847b8af

Please sign in to comment.