I try to build CI with mysql service and building my code with dind configuration.
But I end up with: Can’t connect to MySQL server on 'mysql’
I’m not sure if services can be used like that with dind so they are accessible later from inside of builded docker containers?
My gitlab-ci config:
image: docker:latest variables: DOCKER_DRIVER: overlay stages: - build - test - release services: - docker:dind - mysql:5.5 - redis build: stage: build script: - docker build -t new_image . - docker run new_image bundle exec rake db:create RAILS_ENV=test