![]() ![]() ![]() You can see in the logs that the postgres service can't be resolved by the app container. Skipping Git submodules setup $ docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN :4567 Login Succeeded $ docker pull $CONTAINER_TEST_IMAGE master: Pulling from jonas/rails-ci-test Digest: sha256:93e4c24fa6e9cb1254b1bda6214ea3c18fb8346eff7a23f3523b602b9c18b4ce Status: Image is up to date for :4567/jonas/rails-ci-test:master $ docker -v Docker version 1.13.0, build 49bf474 $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e75a3682b921 9aa3005db491 "docker-entrypoint." 8 seconds ago Up 2 seconds runner-9e68e243-project-4-concurrent-0-build 81537bb5063b f8fd5b8959f5 "gitlab-runner-build" 10 seconds ago Exited (0) 3 seconds ago runner-9e68e243-project-4-concurrent-0-predefined 209172e67097 ecd991538a0f "docker-entrypoint." 17 seconds ago Up 15 seconds 5432/tcp runner-9e68e243-project-4-concurrent-0-postgres $ docker run $CONTAINER_TEST_IMAGE echo $POSTGRES_HOST postgres $ docker run $CONTAINER_TEST_IMAGE cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.17.0.5 f221f5f4ddde $ docker run $CONTAINER_TEST_IMAGE env PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=17872db3b88b RUBY_MAJOR=2.3 RUBY_VERSION=2.3.3 RUBY_DOWNLOAD_SHA256=1a4fa8c2885734ba37b97ffdb4a19b8fba0e8982606db02d936e65bac07419dc RUBYGEMS_VERSION=2.6.10 BUNDLER_VERSION=1.14.4 GEM_HOME=/usr/local/bundle BUNDLE_PATH=/usr/local/bundle BUNDLE_BIN=/usr/local/bundle/bin BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/usr/local/bundle LANG=C.UTF-8 HOME=/root $ docker run $CONTAINER_TEST_IMAGE bundle exec rake test rake aborted! PG::ConnectionBad: could not translate host name "postgres" to address: Name or service not known Tasks: TOP => test (See full trace by running task with -trace) ERROR: Build failed: exit code 1 HEAD is now at bca01ec wfewaef Checking out bca01ec5 as master. Running on runner-9e68e243-project-4-concurrent-0 via 4e1792aeb8f8. ![]() Waiting for services to be up and running. Running with gitlab-ci-multi-runner 1.10.5 (8bebc16) Using Docker executor with image docker:1.13.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |