Closed EvgeniyEsaulkov closed 2 years ago
If you follow installation instructions it will fail
To reproduce run:
# Required if you already have the project installed docker volume rm rails-base-graphql-api_db-data \ rails-base-graphql-api_ruby-bundle bin/docker-setup bin/tests bin/quality
Why do you run docker-setup
and then use scripts without docker?
@EvgeniyEsaulkov sorry, I meant the scripts with docker- prefix
Here is the right variant to reproduce the problem:
# Required if you already have the project installed
docker volume rm rails-base-graphql-api_db-data \
rails-base-graphql-api_ruby-bundle
bin/docker-setup
bin/docker-tests
bin/docker-quality
After this I have all tests failed because there is no database set up.
I suppose that means that we have to leave bin/docker-setup
unchanged
I suppose that means that we have to leave
bin/docker-setup
unchanged
It doesn't depend on docker-setup
- error during tests appears in both old and new versions of this file. docker/quality
works well for me with both versions.
What do you think if we run db:schema:load
before running tests like we do it on Semaphore CI?
Summary
This PR updates docker configuration a bit:
gcompat
library - it's required fornokogiri
gem. This solution described on the Nokogiri websitebin/rails db:migrate
withindocker-entrypoint.sh
script withbin/rails db:prepare
. It's because due the first run of container database doesn't exist yet and an error has raisedReferences