Failed to connect to gitlab port 443: Operation timed out
Hi there! I have gitlab-ce 8.16 in docker container and gitlab-runner on the same host but not in docker. I would like to connect them. I register runner as docker executor. And when I'm starting job - it fails
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.domain.com/platform/app.git/': Failed to connect to gitlab.domain.com port 443: Operation timed out
My gitlab-ci.yml
stages:
- building
- copying
- deploying
buildJob:
stage: building
script:
- sbt assembly
cache:
paths:
- target/scala-2.11/app-assembly-0.0.1.jar
copyJob:
stage: copying
script:
- unzip ~/cache/platform/app/buildJob/"$CI_BUILD_REF_NAME"/cache.zip
- ssh deploy mkdir -p /opt/deployment/app/builds
- ssh deploy mkdir -p /opt/deployment/app/deploys
- ssh deploy mkdir -p /opt/deployment/app/builds/"$CI_BUILD_REF_NAME"
- scp ./target/scala-2.11/app-assembly-0.0.1.jar deploy:/opt/deployment/app/builds/"$CI_BUILD_REF_NAME"/app-assembly-0.0.1-"${CI_BUILD_REF:0:8}".jar
only:
- gitlab-ci
- dev
- test
- master
deployJob:
stage: deploying
script:
- ssh deploy 'ansible-playbook -i /opt/deployment/app/hosts /opt/deployment/app/deploy.yml -u gitlab-runner --extra-vars "branch='$CI_BUILD_REF_NAME' commit='${CI_BUILD_REF:0:8}' timestamp=`date +%Y-%m-%d:%H:%M:%S`"'
only:
- gitlab-ci
- dev
And here is my config.toml
[[runners]]
name = "testrunner"
url = "https://gitlab.domain.com"
token = "XXXxxXXXxxXXX"
executor = "docker"
[runners.docker]
tls_verify = false
image = "bpatters/docker-java8-sbt"
privileged = false
disable_cache = false
volumes = ["/cache"]
[runners.cache]