Hi,
I use gitlab runner with docker in docker. Unfortunately, our runners sometimes (and infrequently and un-reproducibly) hang or get stuck upon the following commands while building the docker container:
RUN pip download --no-cache-dir -r requirements.txt -d /artifacts
or
RUN pip install --no-cache-dir --no-index --find-links=/tmp/artifacts /tmp/artifacts/*
It hangs there for an hour until the build times out. The only solution is to restart the build process (and then it usually completes within just 3-5 minutes!).
The gitlab yaml looks (kinda) like this following minimal example:
- docker:dind
before_script:
- docker info
build:
stage: build
image: docker:1.11
tags:
- docker
script:
- ./configure
- make build
- make push
and make build simply does
docker build $(IMAGE_NAME) -t $(IMAGE_NAME_SHORT) -f Dockerfile .
Any idea what could be the cause for this or where to first dig into to identify the problem?
- Is this most likely a pypi issue?
- Or is this a docker issue?
- Or is this a gitlab issue?
Thanks!