DEV Community

Discussion on: Introducing a Rails 5.1 development environment via Docker

Collapse
 
michiels profile image
Michiel Sikkes

System tests are run inside the container. Headless chrome is installed inside the container. So you can just open the shell in the container and run:

rails test:system
Collapse
 
jschoolcraft profile image
Jeff Schoolcraft

I'm guessing it and bin/devconsole come from railsdockercompose_web but I can't pull it:

Status: Downloaded newer image for redis:latest
Pulling sidekiq (railsdockercompose_web:latest)...
ERROR: pull access denied for railsdockercompose_web, repository does not exist or may require 'docker login'

I searched for it on hub.docker.com but didn't get any results.

Collapse
 
jschoolcraft profile image
Jeff Schoolcraft

Just wasn't seeing where headless chrome was being installed. Couldn't see it in the Dockerfile or in compose. Am I missing something?

Thread Thread
 
michiels profile image
Michiel Sikkes

I forgot to push some commits after publishing the post. The latest master is updated with everything fixed from your previous comments.

Everything is in the local repo. You could also specify an "image" in docker-compose.yml if you intend to build/push your repo to a Docker CI.

However, the latest docker-compose.yml is for local standalone development that doesn't depend on a container image hosted somewhere else.