Docker template for Capybara + Selenium + Chrome headless.
- Ruby 2.5.1
- Capybara
- Selenium
- Chrome headless(+ Japanese font)
$ docker pull ruby:2.5.1
$ git clone https://github.com/shifumin/docker-capybara-chrome-headless
$ cd docker-capybara-chrome-headless
# Create ruby script
$ vim app.rb
# Build Docker image
$ docker-compose build
# Execute the above script
$ docker-compose run --rm capybara ruby app.rb