I’m building a simple RoR application using Docker and docker-compose for faciliting my development setup. The application is running with no problems with Docker/docker-compose but, when I’m trying to run RSpec spec with it, the Puma runs but specs not. See below: # With Docker only: $ docker container run simpleblogapp bundle exec rspec => ..
I’m new to Elasticsearch and Docker. I’m getting search results with my application, But when I run test against the same , I’m getting connection error like this cannot assign requested address – cannot assign requested address – connect(2) for "localhost" port 9200 (localhost:9200) I’m using chewy gem of ruby on rails to implement Elasticsearch ..
I want to run my rails rspec test on docker. If I open Cli via docker desktop and write -bundle exec rspec spec my tests run. What I want is, to run my tests with a command in makefile which up my image and run this command Source: Docker..
On Bitbuckets pipelines, whenever I try to run a bundle exec rspec that contains rspec test that uses Active Storage I get the following error, for every of these tests: ActiveStorage::IntegrityError: ActiveStorage::IntegrityError # ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:127:in `block (3 levels) in <top (required)>’ # ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:135:in `block (3 levels) in <top (required)>’ This is weird since: If I run ..
I want to use a standalone container for integration specs with RSpecs in my docker setup. This is my docker-compose.yml # docker-compose.yml x-ata-development: &ata-development volumes: – ./tmp/capybara/:/usr/src/app/tmp/capybara – ./:/usr/src/app:delegated – /usr/src/app/tmp build: . version: "3.4" services: ata: <<: *ata-development ports: – 3000:3000 – 6006:6006 – 9229:9229 command: bash -c "bundle exec rails s -b 0.0.0.0" ..
Context I’m Dockerizing the development environment for a legacy Rails monolith, using a Dockerfile written for local env + docker-compose using that image to start different services. Goal I would like to run specs from RubyMine with just cmd+shift+R using Zeus – as it takes forever without. Attempt I have a service called test which ..
I’d like to run a fresh MySQL instance in a Docker Container as a Cloud Build, and then access that MySQL DB in a later step to run Unit Tests against. Is this possible? It appears as if I can run a Docker Container in a build step, but the step doesn’t complete until the ..
I’ll jump straight into the problem. I have installed a rspec gem for testing(add rspec gem, then bundle install and rails g rspec:install). However when I run docker-compose up to run my app with docker a web image does not work. Here is a log message returned from that image: web_1 | Could not find ..