Skip to content

fernandomm/ferrum418

Repository files navigation

README

Sample repository showing how to reproduce rubycdp/ferrum#418.

Setup

docker-compose build
docker-compose up -d
docker-compose exec app bash -l -c 'bundle exec rails c'

Reproduce

# This one is failing
docker-compose exec app bash -l -c 'bundle exec rails runner /rails/bug.rb http://browserless:3000'

# When using host.docker.internal in Docker for Mac, it works
docker-compose exec app bash -l -c 'bundle exec rails runner /rails/bug.rb http://host.docker.internal:3000'

Output

$ docker-compose exec app bash -l -c 'bundle exec rails runner /rails/bug.rb http://browserless:3000'
Number of sessions (initial): 0
Number of sessions (before browser.quit): 1
Number of sessions (after browser.quit): 1

$ docker-compose exec app bash -l -c 'bundle exec rails runner /rails/bug.rb http://host.docker.internal:3000'
Number of sessions (initial): 0
Number of sessions (before browser.quit): 1
Number of sessions (after browser.quit): 0

Releases

No releases published

Packages

No packages published